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. Link to comment https://forums.phpfreaks.com/topic/200339-session-not-set/ 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? Link to comment https://forums.phpfreaks.com/topic/200339-session-not-set/#findComment-1051361 Share on other sites More sharing options...
gple Posted May 1, 2010 Author Share Posted May 1, 2010 Yes i do Link to comment https://forums.phpfreaks.com/topic/200339-session-not-set/#findComment-1051363 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. Link to comment https://forums.phpfreaks.com/topic/200339-session-not-set/#findComment-1051365 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 Link to comment https://forums.phpfreaks.com/topic/200339-session-not-set/#findComment-1051370 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. Link to comment https://forums.phpfreaks.com/topic/200339-session-not-set/#findComment-1051375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.