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 $...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |