[Pugged] Logout x2?

Lathrop Preston ciapug@ciapug.org
Mon, 18 Nov 2002 17:02:26 -0600


At 06:20 AM 11/6/2002, you wrote:
>Ahhh.... Wild guess...  But Isn't the array index of the $_POST value
>case sensitive?

It should be case sensitive... yup.

>Maybe like this?
>         if(isset($_POST['Logout'])) {
>         session_destroy();
>         }




>On Tue, 2002-11-05 at 23:14, Chris Van Cleve wrote:
> > Anybody? Nobody?
> >
> > Chris
> >
> > On Tuesday, October 29, 2002, at 01:50  PM, Chris Van Cleve wrote:
> >
> > > Hey gang,
> > >
> > > I have a small form for use in logging in or out of a site. It's works
> > > beautifully, showing user anem and password fields if not logged in,
> > > queries the database whe the Login button is pressed and test against
> > > the values entered, shows a menu if logged in with content based on
> > > security level, and has a Logout button... It's the Logout button
> > > that's the problem. It works... the second time you press it. I am
> > > going to guess that the way I dump the user's session is my problem,
> > > but I'm a bit at a loss. I thought I'd tap this wonderful resource of
> > > guru's or any help that might be available. Here's my code:
> > >
> > > The Logout Button itself:
> > >
> > >       <form name="logout" action="<?= $PHP_SELF ?>" method="post">
> > >         <input name="logout" type="submit" value="Logout">
> > >       </form>
> > >
> > > The test forthe Logout button being set:
> > >
> > >     if(isset($_POST['logout'])) {
> > >     session_destroy();
> > >         }
> > >
> > > I added the following line after the session_destroy(); line to see if
> > > it helped, but it didn't:
> > >
> > >     header("Location: $rurl/index.php");
> > >
> > > Any ideas? I know I'm flubbing something here...
> > > _______________________________________________
> > > Ciapug mailing list
> > > Ciapug@ciapug.org
> > > http://cialug.org/mailman/listinfo/ciapug
> > >
> >
> > _______________________________________________
> > Ciapug mailing list
> > Ciapug@ciapug.org
> > http://cialug.org/mailman/listinfo/ciapug
>--
>
>"...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and
>the Ugly)"
>
>OSIS
>Dave J. Hala Jr.
>641.485.1606
>
>
>_______________________________________________
>Ciapug mailing list
>Ciapug@ciapug.org
>http://cialug.org/mailman/listinfo/ciapug