Session file problem?

From: Date: Thu, 01 Jul 2004 10:40:56 +0000
Subject: Session file problem?
Groups: php.general 
Request: Send a blank email to php-general+get-189446@lists.php.net to get a copy of this message
Code I¹m using: session_cache_expire(0); session_cache_limiter('private'); setcookie("cookie","",0,"/","iffinet.com",1); session_start(); I use session_destroy(); in the logout function but the /tmp/sess_* file does not get deleted. Also the cookie doesn¹t go away even though it is set to expire at the end of the session. How can I get the /tmp/sess_* file to go away along with the cookie? This is a description of the problems I am having: 2 Problems: 1. User A's information will come up when user B logs in instead of user B's information coming up when user B logs in... User A's information seems to be cached in /tmp/sess_8ce0348cbf6704f96c2d8094e876ac3b. Any ideas how to keep this from happening? 2. When a user exits Internet Explorer without logging off and invoking session_destroy(); the user cannot log back in immediately. If I SSH into the server and delete /tmp/sess_8ce0348cbf6704f96c2d8094e876ac3b then the user can log back in. Do I need to write a shell_exec routine to delete this file when the session is destroyed? How can I tell from the server that the user has closed the window? Thanks again! /T

« previous php.general (#189446) next »