September 23rd, 2000, 01:56 AM
I'm trying to learn about the session things.
But I get confused in the PHPSESSID
I make a simple script like this :
Every time I refresh I got the same PHPSESSID printed on browser.
I think the PHPSESSID is always different every time you registered a session.
Tnx a lot in advance !!
See ya !!
NB : Where can I find a good site for Session tutorial or session example ???
** It's the world of Oscario **
September 23rd, 2000, 08:39 AM
From the PHP manual:
session_destroy -- Destroys all data registered to a session
session_destroy() destroys all of the data associated with the current session.
This function always returns true.
Note: This function was added in PHP 4.0.
session_destroy() does not destroy the session, it merely removes all data associated with the session. The current session (and hence sessionid) remain.
September 23rd, 2000, 11:29 AM
How can I end a session when I don't need it? it means to $PHPSESSID different.
September 23rd, 2000, 03:04 PM
To what purpose? Once the data is destroyed the sessionid is pretty much meaningless. There would be no detriment to begin storing new session variables in the current session.
September 24th, 2000, 08:16 AM
So it means that once I start a session, it would never be really destroyed.
Only the variables in it that are destroyed by issuing session_destroy().
Is that true ???
See ya !!
September 24th, 2000, 08:36 AM
Until the session or cookie expire