Date: 10/10/00
- Next message: nathan r. hruby: "Re: [phplib] Sessions"
- Previous message: Barend Scholtus: "Re: [phplib] PHP4 sessions (was Is it necessary to pass Session ID...)"
- In reply to: bryan: "[phplib] Re: Session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Duh.. you're using php4's sessions, not phplib's (So you're really asking
on the wrong list..)
But, $SID only works right if track_vars is enabled (and is not needed if
--enable-trans-id has been compiled in) so testing for it seems silly. I
also couldn't get it to pop up, so tryi using session_id() instead
Since session_destory() will return a true false value, I think a better
test would be..
if (session_id() != '' ) {
if (session_destroy()) {
echo "Session Destoryed!<br>\n";
} else {
echo "Session could not be destoryed!<br>\n";
}
} else {
echo "No Session Found (well, Session ID), so nothing to destroy.<br>\n";
}
-n
On Tue, 10 Oct 2000, bryan wrote:
> Well, that would work fine if I was using a class, but I am not right now.
> Is there any way to do this w/o a class?
>
>
> >>Try
> >>$sess->delete();
>
> On Tue, 10 Oct 2000, bryan wrote:
>
> > Is it just me, or does session_destroy(); not destroy the session?
> >
> > I have set it up as a variable, $SID, and checked to say
> >
> > if ($SID) {
> > session_destroy();
> > } else {
> > print ("I'm gone");
> > }
> >
> > I have also just used the session_destry(); function by itself.
> >
> > Any suggestions?
> >
> > Thanks
> > Bryan
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
-- ........ nathan hruby Webmaster: UGA Department of Drama and Theatre Project Maintainer: phpSlash, Carousel nhruby <email protected> ........--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: nathan r. hruby: "Re: [phplib] Sessions"
- Previous message: Barend Scholtus: "Re: [phplib] PHP4 sessions (was Is it necessary to pass Session ID...)"
- In reply to: bryan: "[phplib] Re: Session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

