gple Posted May 1, 2010 Share Posted May 1, 2010 I have created a session on one of my pages and then when i go to check the session on another page it doesnt exist. At no point in my code do I kill the session. Quote Link to comment Share on other sites More sharing options...
trq Posted May 1, 2010 Share Posted May 1, 2010 Have you a call to session_start on each page accessing the $_SESSION array? Quote Link to comment Share on other sites More sharing options...
gple Posted May 1, 2010 Author Share Posted May 1, 2010 Yes i do Quote Link to comment Share on other sites More sharing options...
trq Posted May 1, 2010 Share Posted May 1, 2010 Make sure you have error reporting set to E_ALL and display errors on. Quote Link to comment Share on other sites More sharing options...
gple Posted May 1, 2010 Author Share Posted May 1, 2010 Warning: Unknown: open(/var/php_sessions/sess_65c14600a0956bafb072cfbd009fc3b2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0 Quote Link to comment Share on other sites More sharing options...
trq Posted May 1, 2010 Share Posted May 1, 2010 It would appear your server doesn't sufficient permissions to write to /var/php_sessions or the directory doesn't exist. best do as the error describes. Please verify that the current setting of session.save_path is correct. Quote Link to comment 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.