an easy destroying session issue...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux