Q695 Posted September 9, 2008 Share Posted September 9, 2008 When you do the following commands to unset a variable, it doesn't completely destroy the variable, but it doesn't use other session ids: session_destroy(); unset($_SESSION['id']); It also does this when you log in on at the log in page without logging out. It took me about an hour to finally figure out that it didn't wipe the value completely. What is the work around for this flaw, or hasn't it been built in yet? Link to comment https://forums.phpfreaks.com/topic/123371-unset-session-bug-desirable-possible-fix-for-php-53/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 9, 2008 Share Posted September 9, 2008 Those two statements only have an effect if a session was started. Does your code have a session_start() prior to those lines of code and do you know for a fact (checked your web server error log file and/or have full error_reporting and display_errors turned on) that the session started without any header errors? Link to comment https://forums.phpfreaks.com/topic/123371-unset-session-bug-desirable-possible-fix-for-php-53/#findComment-637224 Share on other sites More sharing options...
Q695 Posted September 9, 2008 Author Share Posted September 9, 2008 I have: error reporting: on session variable display: on session start: on at log in it is for a simple log out script. Link to comment https://forums.phpfreaks.com/topic/123371-unset-session-bug-desirable-possible-fix-for-php-53/#findComment-637233 Share on other sites More sharing options...
PFMaBiSmAd Posted September 9, 2008 Share Posted September 9, 2008 To get help with what your code is doing, you would need to post it. Link to comment https://forums.phpfreaks.com/topic/123371-unset-session-bug-desirable-possible-fix-for-php-53/#findComment-637249 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.