PDA

View Full Version : PHP Sessions (session.save_path)


James
10-7-04, 10:44 PM
PowWeb will soon be load balancing all of our webservers. As a result, the php session save path needs to point somewhere that is accessible on all servers. The default location in /tmp is not. This only affects customers using custom php.ini files as powweb's default php.ini files have already been updated:

The new session.save_path value is:

session.save_path = "3;/www/php"

This points to a NFS file system accessible on all our servers.

shbell
10-19-04, 04:57 PM
If you need assisstance correcting the issue with the sessions save path.
Please try the following.

Create a custom php.ini file in notepad
you can copy a custom php file from the following link
http://powweb.com/tutorials/select.php?category=PHP%2FMySQL

Edit the line in php.ini that says save.session_path = to
/www/u/username/sessions
Your username can be obtained from the ftp information located in your members operations area.

Upload your new custom php.ini into htdocs

Create a folder in your root directory, above htdocs called sessions
and your set to go.

Feel free to contact our support department if you need any further assisstance.

tbonekkt
10-19-04, 07:30 PM
Additionally, since session files will be saved to a directory within your space, they will count towards your file/space quota.

You should initiate a cronjob to delete expired sessions files. Please see this thread for further assistance: http://forum.powweb.com/showthread.php?t=41200

James
10-19-04, 10:37 PM
due to the problems we have seemed to have with it mounted under the /tmp directory we are moving it to /www/php;3 now:

session.save_path = "3;/www/php"

If you do not have a custom php.ini file or you are using your home directory you do not have to worry about it.