peterw Posted December 16, 2010 Share Posted December 16, 2010 The variable is set so the user can see the inside pages of a members area after they have logged in. By the time they go to a different page the variable is gone. Please note the following: - It doesn't happen to a specific browser - It doesn't happen all of the time - It works when I print the value of the $_SESSION variable - Once it has been printed to the screen once if I remove the functionality that makes it print, it keeps working. It's nearly impossible for me to test because I can't recreate the problem. It is my client that has the problem every once in a while. Please help!! Quote Link to comment https://forums.phpfreaks.com/topic/221873-inconsistent-_session-variables/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 16, 2010 Share Posted December 16, 2010 Are you on a shared web host and are using the default session.save_path setting (/tmp) that would cause your session data files to be stored in the common location as all the other session data files? Quote Link to comment https://forums.phpfreaks.com/topic/221873-inconsistent-_session-variables/#findComment-1148139 Share on other sites More sharing options...
peterw Posted December 16, 2010 Author Share Posted December 16, 2010 Are you on a shared web host and are using the default session.save_path setting (/tmp) that would cause your session data files to be stored in the common location as all the other session data files? We have a dedicated server but in the context of this client it is a shared web host as all of our clients are sharing our dedicated server. It's a cpanel WHM server and I have verified that I am using the default session.save_path of /tmp. Do you have any suggestions on how to change this so eah client has their session files stored in a unique folder(I'm thinking a custom php.ini file for this client) Thanks for your time Quote Link to comment https://forums.phpfreaks.com/topic/221873-inconsistent-_session-variables/#findComment-1148189 Share on other sites More sharing options...
PFMaBiSmAd Posted December 16, 2010 Share Posted December 16, 2010 One of the accounts is probably using a short session.gc_maxlifetime in a misguided attempt to 'automatically' log out visitors. Each account should set their session.save_path to point to a 'private' folder within their own account's folder tree so that only their session settings, and not the settings of the other accounts, will affect their session data files. Quote Link to comment https://forums.phpfreaks.com/topic/221873-inconsistent-_session-variables/#findComment-1148194 Share on other sites More sharing options...
peterw Posted December 16, 2010 Author Share Posted December 16, 2010 One of the accounts is probably using a short session.gc_maxlifetime in a misguided attempt to 'automatically' log out visitors. Each account should set their session.save_path to point to a 'private' folder within their own account's folder tree so that only their session settings, and not the settings of the other accounts, will affect their session data files. How would I set it up for their sessions to store in their own private folder? Quote Link to comment https://forums.phpfreaks.com/topic/221873-inconsistent-_session-variables/#findComment-1148197 Share on other sites More sharing options...
peterw Posted December 20, 2010 Author Share Posted December 20, 2010 Sorry to double post but I need a solution someone! Help! Quote Link to comment https://forums.phpfreaks.com/topic/221873-inconsistent-_session-variables/#findComment-1149526 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.