A little confused about session_destroy()
| From: | Perry Loh | Date: | Wed, 01 Nov 2000 04:40:12 +0000 |
| Subject: | A little confused about session_destroy() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23090@lists.php.net to get a copy of this message | ||
Well I'm trying to code this small logout.php, and I use session_destroy().
Well as far as I have read in the documentation, session_destroy() is
something like the opposite of session_start(), doesn't accept parameters as
I know.
Calling session_destroy() alone causes an error from PHP, telling me that I
am trying to destroy an unitialized session. Bear in mind, that I a session
running before calling session_destoy().
Some people have told me that I have to first register the session variables
that I used earlier before calling the destroy() function. Well I did try
that, didn't seem to work . Calling Session_Unregister, or Session_Unset
doesnt work too
Could someone help me out here as I'm really not sure what is the problem
here ?
--
Perry Loh
Lead Developer, KlikInTouch.com
perryloh@klikintouch.com
- Just about Anywhere you go -