Re: Maxing out sessions?

From: Date: Mon, 24 Jan 2005 23:53:56 +0000
Subject: Re: Maxing out sessions?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-207185@lists.php.net to get a copy of this message
Matt wrote: > [matth@hecate tmp]$ cat /proc/sys/fs/file-max > 52403 To be 100% certain this ain't the problem, do something like: exec("ls /tmp/ | wc -l", $result, $error); if ($error){ error_log("Attempt to count number of sessions failed: $error" . implode("", $result)); } else{ error_log("Currently there are " . implode($result) . " sessions"); } The goal being to make absolutely certain that there are not more than 52403 files in /tmp when things fail... Of course, between the time it fails and the time you do the exec() a bunch of /tmp files could appear/disappear, but hopefully you'll find out quickly if you're in the same ballpark as 52K files in the directory. This is probably *NOT* really the problem, just one example of something which *could* be going on. PS Try to write any code that error-checks the session_start() as REAL code, not just debugging junk you'll rip out. Error-checking is Good. :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#207185) next »