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

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
The cookie that stores the session id will live until the browser window is closed. You can apply a different lifetime to the cookie by using session_set_cookie_params() but I doubt that'll do what you want. Just use the session_id() function to change the session id manually when you register