an easy destroying session issue...
| From: | pere roca | Date: | Wed, 02 Apr 2008 14:34:40 +0000 |
| Subject: | an easy destroying session issue... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-272447@lists.php.net to get a copy of this message | ||
for destroying the session without closing the browser it should work...
<?php
session_start();
$_SESSION = array();
session_destroy();
$userid = safehtml($_POST['userid']);
session_start();
//$sessionid can be used to retrieve the current name and session id as a
string
$sessionid=session_id();
//userid can be re-used as a variable in other php files
session_register("userid");
After leaving the page and coming back, without closing the browser, and
performing a SQL sentence like "insert into user_table values
('$userid','$sessionid')"; I get sessionid is still the same!! why¿?
thanks,
Pere
--
View this message in context: http://www.nabble.com/an-easy-destroying-session-issue...-tp16447090p16447090.html
Sent from the PHP - General mailing list archive at Nabble.com.