Page 1 of 1

[SOLVED]PHP Session Question

Posted: Thu Jan 01, 2009 6:44 pm
by TheLastLegion
I've the latest version of CMS 1.5.1 have no "extra" modules except Form Builder which is the latest version of that

Now i know login sessions are all stored in /tmp folder in root and i think the problem seems to be they fill up wayy to quickly, and i've to clear the tmp folder

i get this quite often:

Code: Select all

Warning: Unknown: write failed: No space left on device (28) 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 () in Unknown on line 0
so what i do is i login to root and use this command to clear of all sessions etc.

Code: Select all

rm -fr /tmp/* /tmp/.??*
it works but i'd hate to keep on quite doing this, and my fear is if there is a onburst of visitors it'll fill up way to quickly, i was wondering does the community know of a hack or php configuration or better yet a way to increase the space used by /tmp folder ?

oh btw, i do have space left on the HDD, about 15 GB of space, so i just need to know how to allocate a sizeable portion to /tmp folder

thxs

Re: PHP Session Question

Posted: Fri Jan 02, 2009 6:46 pm
by TheLastLegion
any linux gurus have any ideas?

Re: PHP Session Question

Posted: Sat Jan 03, 2009 9:20 pm
by TheLastLegion
guys for an update: i've added a cron job to take care of this everyday basically

Re: [SOLVED]PHP Session Question

Posted: Thu Jan 22, 2009 10:21 pm
by spcherub
Another option (especially if you have root access) is to change the PHP config variable "session.save_path" to point to volume other than /tmp that is not constrained by available disk space. This can be changed in the php.ini config file (either local or global). More information about this variable is at http://us3.php.net/manual/en/session.co ... .save-path

Hope this helps.

S