Sulman Posted January 3, 2008 Share Posted January 3, 2008 Hi All, I am haing a problem with sessions. I have moved my project over to a new PHP install on a Windows Server machine. I am now losing all session variables between pages (works fine on other machines.). What do you think this could be? Looking in the new .ini file reveals: "Windows users have to change this variable in order to use PHP's session functions". What variable do they mean and what should it be changed to? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/84321-solved-session-problem-on-windows-machine/ Share on other sites More sharing options...
revraz Posted January 3, 2008 Share Posted January 3, 2008 In the php.ini, what is the session save path set to? Look at all the [session] related keys. Quote Link to comment https://forums.phpfreaks.com/topic/84321-solved-session-problem-on-windows-machine/#findComment-429410 Share on other sites More sharing options...
PFMaBiSmAd Posted January 3, 2008 Share Posted January 3, 2008 Also, check your web server log for errors to get php to help you with any problems it finds while executing your code. Quote Link to comment https://forums.phpfreaks.com/topic/84321-solved-session-problem-on-windows-machine/#findComment-429432 Share on other sites More sharing options...
Sulman Posted January 3, 2008 Author Share Posted January 3, 2008 In the php.ini, what is the session save path set to? Look at all the [session] related keys. Well, this was one of the things I looked at but I'm not sure what it should be set to? Also do I just create a directory, or does something need to be in it too? Also what permissions should I grant on the directory? Thanks for the replies. Quote Link to comment https://forums.phpfreaks.com/topic/84321-solved-session-problem-on-windows-machine/#findComment-429484 Share on other sites More sharing options...
Sulman Posted January 4, 2008 Author Share Posted January 4, 2008 Can any one point me in the right direction? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/84321-solved-session-problem-on-windows-machine/#findComment-430241 Share on other sites More sharing options...
Sulman Posted January 4, 2008 Author Share Posted January 4, 2008 This has been solved. I changed the path in the .ini file, gave IUSR read & write rights to that dir then restarted IIS. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/84321-solved-session-problem-on-windows-machine/#findComment-430472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.