PCHomepage
Programmer
Perhaps not precisely a PHP question but I'm not sure where else to post it. It seems that the current session on my local development system (WAMP) is somehow locked. I can add session values and even create new ones but existing ones seem to remain. I tried totally wiping out the session with:
But get an error that seems to confirm the suspicion although I'm not sure. Can anyone clarify? I have a script that views the session values and shows them unchanged.
Code:
if ( isset( $_COOKIE[session_name()] ) )
setcookie( session_name(), “”, time()-3600, “/” );
$_SESSION = array();
session_destroy();
But get an error that seems to confirm the suspicion although I'm not sure. Can anyone clarify? I have a script that views the session values and shows them unchanged.
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session