Re: [PHP] Destroying a Session

2004-08-25 Thread Andre Dubuc
On Wednesday 25 August 2004 12:27 pm, Shaun wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > >> function clear_orderinfo() { > > >> global $_SESSION; > > >> unset($_SESSION["orderinfo"]); > > >> } > > >> > > >> However this function doesnt seem to work and the sessi

Re: [PHP] Destroying a Session

2004-08-25 Thread Torsten Roehr
"Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >> function clear_orderinfo() { > > >> global $_SESSION; > > >> unset($_SESSION["orderinfo"]); > > >> } > > >> > > >> However this function doesnt seem to w

Re: [PHP] Destroying a Session

2004-08-25 Thread Shaun
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> function clear_orderinfo() { > >> global $_SESSION; > >> unset($_SESSION["orderinfo"]); > >> } > >> > >> However this function doesnt seem to work and the session remains > >> active, is > >> there another way to clear a session

Re: [PHP] Destroying a Session

2004-08-25 Thread john
>> function clear_orderinfo() { >> global $_SESSION; >> unset($_SESSION["orderinfo"]); >> } >> >> However this function doesnt seem to work and the session remains >> active, is >> there another way to clear a session? I'm not triffically experienced, but I do have notes on the subject. You'r

Re: [PHP] Destroying a Session

2004-08-25 Thread Burhan Khalid
On Wed, 2004-08-25 at 14:34, Shaun wrote: > I am writing a shopping cart and am using a session called > $_SESSION["orderinfo"] to store the order information. I also have a > function I use to clear the session when the payment has been authorized: > > function clear_orderinfo() { > global $_SE

[PHP] Destroying a Session

2004-08-25 Thread Shaun
Hi, I am writing a shopping cart and am using a session called $_SESSION["orderinfo"] to store the order information. I also have a function I use to clear the session when the payment has been authorized: function clear_orderinfo() { global $_SESSION; unset($_SESSION["orderinfo"]); } Howev

Re: [PHP] Destroying a session!!!

2002-05-14 Thread Kevin Stone
- From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 1:43 PM Subject: Re: [PHP] Destroying a session!!! > The cookie that stores the session id will live until the browser window is > closed. You can apply a different lif

Re: [PHP] Destroying a session!!!

2002-05-14 Thread Kevin Stone
ister your variables. This is a good idea even if you're not using sessions for a secure login system. -Kevin - Original Message - From: "Gabor Niederlaender" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 12:07 PM Subject: [PHP] De

[PHP] Destroying a session!!!

2002-05-14 Thread Gabor Niederlaender
Hi all! I have seen a couple of discussions on the same topic, but even so I do not really know how to destroy sessions. I would like to achieve, that a second login after a logout generates a wholly new session, with a new session id. I have tried: session_unset(); session_destroy(); an