Hi,

Today i have made backup of my website and then i have restored it in my computer, all contents i have browsed it is working very well.
But when i log into the site and then click on any content, suddenly it automattically logout. It seems that it doesn't have session.
How could it fix it?

Note:
i am using drupal 4.6

Thanks,
ChanHan Hy

Comments

cog.rusty’s picture

If it is 4.6.10 or earlier and you have PHP 5.2 in your local installation check this:

http://drupal.org/node/102114

hychanhan’s picture

Hi,

Thanks you very much.
It's useful link and it is working now i just added

// Temporary fix to login/sessions problem.
// Remove this line when upgrading to 4.6.11, 4.7.11 or 5.x or later.
register_shutdown_function('session_write_close');

at the bottom of settings.php :)

Thanks,
ChanHan Hy