How do I set my session storage location from my php.ini file? Also would I need to set anything else in my php.ini file since I am changing the location of my sessions? Thanks.
http://php.net/manual/en/function.session-save-path.php Also make sure your new area has the correct permissions to be writeable by the server.
But since this isn't in my php.ini file doesn't that mean that I would have to call it every time I use session_start()? If so is there anyway I can set it in my php.ini file so I don't have to call it over and over again?
simply change the value in the ini file. get the value in your script: $sessiondir=ini_get('session.save_path'); given that your server supports this: set the value in your script: $sessiondir=ini_set('session.save_path',"some/path/here");
Thanks. One more question though. I want to set the session save path so I can count the number of session files but I am worried that it is not as secure as /tmp (the default). If I specify a new path say /sessions/users/ will hackers be able to hack my session data easily since it is not outside the root? Thanks.