What's "CONTROL" supposed to be? A variable passed? If so, you should use:

session_start()
session_register("CONTROL");

//to end the session simply call it up by:
session_start();
//and then destroy it which also unregisters all variables passed...
session_destroy();


Granted, I'm new at this too but this method seemed to work for me in a past
project.

Kristi


----- Original Message -----
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Monday, January 17, 2000 1:16 PM
Subject: RE: [PHP] Ok thanx sessions that was great, now it's time to go
back home!!!


> Actually it would be like saying to a mechanic, Hey when I try to change
my
> oil it spills can you give me an example of how to change my oil.  All I
was
> asking for was an example snip of code.
>
> But if this can help here is the error I get:
>
> Warning: Session object destruction failed in
> c:\apache\htdocs\sessions\done.php on line 3
>
> Here is the code I am using:
>
> <?php
> session_start("CONTROL");
> session_destroy();
> echo "It Werked<BR>";
> ?>
> <A HREF="index.php">RESTART>></a>
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 9:33 AM
> To: Brandon Orther
> Cc: PHP User Group
> Subject: Re: [PHP] Ok thanx sessions that was great, now it's time to go
> back home!!!
>
>
> > I am getting started with session and really love the sessions to death,
> but
> > when I try to end a session I get an error.  Can someone give me an
> example
> > of code that ends a session.
>
> What is the error that you get?  What is the code you're now using that
> causes the error?
>
> It's like saying to your mechanic "When I do something in my car, it makes
> a noise."
>
> xxo,
> Andy
>
> --
> # Andy Lester  http://www.petdance.com  AIM:petdance
> %_=split';','.; Perl ;@;st a;m;ker;p;not;o;hac;t;her;y;ju';
> print map $_{$_}, split //,
> '[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]

Reply via email to