TheConeHead
Programmer
i think I am creating a session via:
I am trying to do a 'logout' feature with:
but I am getting the folowing error:
Warning: session_destroy(): Trying to destroy uninitialized session in .... on line 4
and it is not unsetting the session vars. Any ideas?
thanks
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Code:
$HTTP_SESSION_VARS['access'] = 'value';
$HTTP_SESSION_VARS['id'] = 'value';
I am trying to do a 'logout' feature with:
Code:
unset($HTTP_SESSION_VARS['access']);
unset($HTTP_SESSION_VARS['id']);
session_destroy();
but I am getting the folowing error:
Warning: session_destroy(): Trying to destroy uninitialized session in .... on line 4
and it is not unsetting the session vars. Any ideas?
thanks
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)