Session file in /tmp

From: Date: Tue, 29 Jun 2004 03:21:28 +0000
Subject: Session file in /tmp
Groups: php.general 
Request: Send a blank email to php-general+get-189211@lists.php.net to get a copy of this message
Code: session_cache_expire(0); session_cache_limiter('private'); session_start(); I use this at the beginning of my script that processes data objects for my users. The users use multiple machines and login to the web site. This prevents the cached information from one user popping up when another user logs in. Will this contribute to the solution for my main problem: When a user exits a window without logging out they have to wait until the cookie expires or the session file in /tmp is deleted before they can get back in. This is the code that executes at login: session_cache_expire(0); session_cache_limiter('private'); setcookie("cookie","",0,"/","iffinet.com",1); session_start(); I was hoping this would cause the session file in /tmp to be deleted but it doesn¹t work. I also tried unset($_SESSION[Œid¹]) this doesn¹t work either.. Anyone have any ideas as to how I can resolve this? Thanks for your help! /Tim

« previous php.general (#189211) next »