Re: [PHP] how do I delete session

2001-04-05 Thread [EMAIL PROTECTED]

how?
Like this
session_destroy("name");
how about if I want to register that variable to be session again ( without
closing browser and start everything all over again)? can I still do that?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Felix Kronlage [EMAIL PROTECTED]
To: Jacky [EMAIL PROTECTED]
Sent: Thursday, April 05, 2001 3:59 AM
Subject: Re: [PHP] how do I delete session


 On Thu, Apr 05, 2001 at 03:47:43PM -0500, Jacky wrote:

  session_unregister("name");
  ?
  It appears to me that the value is still there all the time,
  unles I close the browser. what did I do wrong??

 use session_destroy() to completly kill a session.

 -fkr
 --
 gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
   |all your base are belong to us  |  shame on me  | fkr@IRCnet |




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how do I delete session

2001-04-05 Thread Felix Kronlage

On Thu, Apr 05, 2001 at 04:10:16PM -0500, Jacky@lilst wrote:

 how?
 Like this session_destroy("name");
 how about if I want to register that variable to be session again ( without
 closing browser and start everything all over again)? can I still do that?

session_destroy() *completly* kills the session. You call it and the
session is gone. you might want to check the manual at php.net for
the description (and the difference) betweend session_unregister() and
session_destroy().

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how do I delete session

2001-04-05 Thread Renze Munnik

"Jacky@lilst" wrote:
 
 how?
 Like this
 session_destroy("name");
 how about if I want to register that variable to be session again ( without
 closing browser and start everything all over again)? can I still do that?
 Jack
 [EMAIL PROTECTED]
 "There is nothing more rewarding than reaching the goal you set for
 yourself"


In order to completely destroy the session:

session_destroy();

No arguments, just void.
-- 

* RzE:

***
**  Renze Munnik
**
**  E: [EMAIL PROTECTED]
**  M: +31 6 218 111 43
***

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how do I delete session

2001-04-05 Thread nicuc.ac.jp

session_register("name") ;  = assign variable to session
session_unregister("name") ; = unassign the variable

make complete kill the session (and all the variable in session) use :
session_destroy() ;

--
-Tuna-


""Jacky"" [EMAIL PROTECTED] wrote in message
00b001c0be11$a9e2abe0$[EMAIL PROTECTED]">news:00b001c0be11$a9e2abe0$[EMAIL PROTECTED]...
Hi all
I wen tto check manual, not quite get it though. I have set up session and I
want that deleted, but it did not work so far with session_unset or
session_unregister.
I figure I may have used them incorrectly
here is what i did

?php
session_start();
global $name;
$name = "foo";
session_register("name");
...

session_unregister("name");
?

It appears to me that the value is still there all the time, unles I close
the browser. what did I do wrong??
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]