Re: Create a new $_COOKIE["PHPSESSID"] in PHP4.3.1

From: Date: Tue, 06 Sep 2005 20:34:25 +0000
Subject: Re: Create a new $_COOKIE["PHPSESSID"] in PHP4.3.1
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-222045@lists.php.net to get a copy of this message
hy.... try this.... $sess_id = session_id(); // Unset all Session Vars session_unset(); // Destroy Session session_destroy(); /* // Get session file and delete it !!! if (strtolower('files' == session_module_name())) { if( substr(PHP_OS, 0, 3) == 'WIN' ) { $tz = "//"; $path = str_replace( chr(92) , $tz , session_save_path() ); } else { $tz = "/"; $path = session_save_path(); } @unlink($path . $tz .'sess_'. $sess_id ); } */ --------------------------------------------------------------------------------------------------------------- PGP Public Key: www.rt31x-tutorial.de/php/Steffen Stollfuss_pub.asc ---------------------------------------------------------------------------------------------------------------

« previous php.general (#222045) next »