margaux Posted June 7, 2012 Share Posted June 7, 2012 I get the following error when I run the sessions.php script which includes the session handler functions Warning: session_write_close() [function.session-write-close]: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/Applications/MAMP/tmp/php) in /Applications/MAMP/htdocs/advanced/sessions.php on line 37 line 37 is the call to session_write_close(); What does this mean exactly and how do I rectify it? Incidentally there is a session text file being saved in the tmp directory referred to - its full of data that I don't understand. Link to comment Share on other sites More sharing options...
Larry Posted June 8, 2012 Share Posted June 8, 2012 Are you sure you're including the db sessions file? Link to comment Share on other sites More sharing options...
margaux Posted June 9, 2012 Author Share Posted June 9, 2012 Thanks Larry - actually, there was an error in my write_session function. Link to comment Share on other sites More sharing options...
Recommended Posts