[SOLVED]PHP Session Question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
TheLastLegion
Forum Members
Forum Members
Posts: 54
Joined: Sun Dec 21, 2008 4:01 am

[SOLVED]PHP Session Question

Post 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
Last edited by TheLastLegion on Sat Jan 03, 2009 9:20 pm, edited 1 time in total.
TheLastLegion
Forum Members
Forum Members
Posts: 54
Joined: Sun Dec 21, 2008 4:01 am

Re: PHP Session Question

Post by TheLastLegion »

any linux gurus have any ideas?
TheLastLegion
Forum Members
Forum Members
Posts: 54
Joined: Sun Dec 21, 2008 4:01 am

Re: PHP Session Question

Post by TheLastLegion »

guys for an update: i've added a cron job to take care of this everyday basically
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: [SOLVED]PHP Session Question

Post 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
Post Reply

Return to “CMSMS Core”