ID:               22396
 Updated by:       [EMAIL PROTECTED]
 Reported By:      milan_mlynarcik at hotmail dot com
 Status:           Open
 Bug Type:         Session related
 Operating System: WinXP
 PHP Version:      4.3.0
 New Comment:

Confirming.

Looks like sessions are started only once. This issue is even with
session_write_close(). session_start() after any session-closing
commands simply does not work. It would be better if it reloaded
session (or created new, depending on was it destroyed or saved). It is
a pain to redirect the page to self to get session data again.

Hope it'll be fixed. Sometimes it is needed to unlock session/then
access it again.



Previous Comments:
------------------------------------------------------------------------

[2003-02-24 11:34:42] milan_mlynarcik at hotmail dot com

<?php
        session_start();
        $sid1 = session_id();
        session_unset();
        session_destroy();

        // ...and create new one
        session_start();
        $sid2 = session_id();
        if ($sid1 === $sid2) {
          print 'equals';
        } else {
          print 'doesn\'t equal';
        }
?>

This prints 'equals'...is it OK ? I think that session id should change
between two different sessions...

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22396&edit=1

Reply via email to