Dear all,
I would ask some ways to use php
to destroy session to accomplish the logout function. Through php, I have
registered several variables such as userid, username and so forth. However when I use
session_unregister("userid"), session_unregistered("username"), nothing happens.
Also I use session_destroy() to clear all session variable, error prompts out.
Warning: Trying to destroy uninitialized session in /home/htdocs/silicon/kids/php/login/logout.php on line 6
Please give me reply, on how to clear all selected session variables, thanks
Sincerely yours,
Simon
I would ask some ways to use php
to destroy session to accomplish the logout function. Through php, I have
registered several variables such as userid, username and so forth. However when I use
session_unregister("userid"), session_unregistered("username"), nothing happens.
Also I use session_destroy() to clear all session variable, error prompts out.
Warning: Trying to destroy uninitialized session in /home/htdocs/silicon/kids/php/login/logout.php on line 6
Please give me reply, on how to clear all selected session variables, thanks
Sincerely yours,
Simon