Re: [PHP] Create a new $_COOKIE[PHPSESSID] in PHP4.3.1
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 ---
[PHP] Create a new $_COOKIE[PHPSESSID] in PHP4.3.1
Hi, Php 4,3,2 has a regenerate session id function session_regenerate_id un4tunately I 'm stuck with 4.3.1 The following doesn't seem to work // Unset session data $_SESSION=array(); // Clear cookie unset($_COOKIE[session_name()]); // Destroy session data session_destroy(); Unless I close and reopen IE I always get the same session Id Can ye help? -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php