session_unregister must take the name of the variable to kill. So:
session_unregister("test");
does the job.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Jacky@lilst"" <[EMAIL PROTECTED]> wrote in message
008701c0be0f$21dd1de0$[EMAIL PROTECTED]">news:008701c0be0f$21dd1de0$[EMAIL PROTECTED]...
> I have setup session here
> <?php
> global $test;
> $test = "foo";
> session_register("test");
> ?>
>
> and newbie as I am, still don't know how to delete value of this, I
actually
> using this right at the bottom of the page where I want session value to
be
> deleted.
> <?php
> session_unset();
> ?>
> Did not work, of course, so what do I do?
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for
> yourself"
> ----- Original Message -----
> From: Wade Halsey <[EMAIL PROTECTED]>
> To: Jacky@lilst <[EMAIL PROTECTED]>
> Sent: Monday, April 02, 2001 3:48 AM
> Subject: Re: [PHP] is this syntax correct?
>
>
> > do you have
> > session_start();
> > at the top of the next page?
> >
> > ----- Original Message -----
> > From: Jacky@lilst <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, April 02, 2001 10:43 PM
> > Subject: Re: [PHP] is this syntax correct?
> >
> >
> > > I also tried this syntax:
> > > <?php
> > > global $test;
> > > $test = "foo";
> > > session_register("test");
> > > ?>
> > >
> > > and it still not work as when I go to next page, and try echo $test,
> > nothing
> > > come up.
> > > Jack
> > > [EMAIL PROTECTED]
> > > "There is nothing more rewarding than reaching the goal you set for
> > > yourself"
> > > ----- Original Message -----
> > > From: Joseph Bannon <[EMAIL PROTECTED]>
> > > To: Jacky@lilst <[EMAIL PROTECTED]>
> > > Sent: Monday, April 02, 2001 3:44 AM
> > > Subject: RE: [PHP] is this syntax correct?
> > >
> > >
> > > > > So what is the right way to do?
> > > >
> > > >
> > > > I resent my email to the list. I've done mostly DB work, so I need
to
> > know
> > > > what those functions do.
> > > >
> > > > J
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]