PHP session won't die!

This is a discussion on PHP session won't die! within the PHP General forums, part of the PHP Programming Forums category; I cannot, for the love of Job, get a login session to die! I am defining my sessions using the $...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2003
rob@ecomnow.com
 
Posts: n/a
Default PHP session won't die!

I cannot, for the love of Job, get a login session to die! I am defining my sessions using the $_SESSION superglobal, register_globals is off, and Ihave tried about 15 combinations of unset(), session_unregister(), session_destroy(), session_unset(), $_SESSION = array(), and even setcookie using a time in the past. As soon as a user gets back to a pagePlease, if you can offer me any information on how a page with a session_start call, everything is magically restored as though I never touched the sessions. Please, if you have any idea what the DEFINATIVE way to absolutely and completelykill this session is OR if you know where I should post this question, I would be forever in debt!

Thanks for your time.

Rob.
Reply With Quote
  #2 (permalink)  
Old 11-09-2003
Dvdmandt
 
Posts: n/a
Default Re: PHP session won't die!

setcookie(session_name(),"",0,"/");
session_unset();
session_destroy();

or something like that...

--
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/defau...er&hcName=swen
http://securityresponse.symantec.com...swen.a@mm.html
##########################
<rob@ecomnow.com> skrev i meddelandet
news:GMail.1068319581.107634117.04016142185@localh ost...
I cannot, for the love of Job, get a login session to die! I am defining
my sessions using the $_SESSION superglobal, register_globals is off, and I
have tried about 15 combinations of unset(), session_unregister(),
session_destroy(), session_unset(), $_SESSION = array(), and even setcookie
using a time in the past. As soon as a user gets back to a pagePlease, if
you can offer me any information on how a page with a session_start call,
everything is magically restored as though I never touched the sessions.
Please, if you have any idea what the DEFINATIVE way to absolutely and
completely kill this session is OR if you know where I should post this
question, I would be forever in debt!

Thanks for your time.

Rob.
Reply With Quote
  #3 (permalink)  
Old 11-09-2003
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] PHP session won't die!

rob@ecomnow.com wrote:
> I have tried about 15 combinations of unset(), session_unregister(), session_destroy(), session_unset(), $_SESSION = array(),

I miss session_start in the list. You have to start the session prior to
destroying it.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0