re php info:

put this into a file, put it on your server, and call up the page in a
browser:

<?php
phpinfo();
?>

it will show the settings for php on your server.  As Jim suggested below,
you should check the register_globals setting.  If register_globals is on,
you'll need to use the _Get function.  see more on this by looking up
register_globals and _Get in the php manual at php.net

hth

matt

----- Original Message -----
From: Tyler Durdin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 2:00 PM
Subject: Re: [PHP] sessions


> I don't know. Tell me where I would find it and I'll look  : -)
> Sorry, pretty new to all of this.
>
> >Do you have register globals off?
> >
> >Jim Grill
> >Support
> >Web-1 Hosting
> >http://www.web-1hosting.net
> >----- Original Message -----
> >From: "Tyler Durdin" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, July 26, 2002 12:33 PM
> >Subject: [PHP] sessions
> >
> >
> > > I used this logout page using sessions a while ago and it used to work
> > > great, but now it doesn't work. The only thing i have changed is my
> >version
> > > of php. Can someone take a look and see what i have to change?
> > >
> > > <?
> > >     session_start();
> > >
> > > $old_user = $valid_user;
> > > $result = session_unregister("valid_user");
> > > session_destroy();
> > >
> > > ?>
> > >
> > > then a little further down i have this....
> > >
> > > <php?
> > > if (!empty($old_user)) {
> > >      if ($result) {
> > >             echo "Logged out.<br>";
> > >      } else {
> > >             echo "Could not log you out.<br>";
> > >      }
> > > } else {
> > >     echo "You have not logged in; therefore, you cannot logout.<br>";
> > > }
> > > ?>
> > > It seems to log me out still, but it always gives me the "you have not
> > > logged in; therefor, you cannot logout" message. i also checked it
with
> >a
> > > script to see if my original sessions were actually registering and it
> > > seemed that they were. i am stumped. Any ideas would be greatly
> >appreciated.
> > > Thanks.
> > >
> > >
> > >
> > > _________________________________________________________________
> > > MSN Photos is the easiest way to share and print your photos:
> > > http://photos.msn.com/support/worldwide.aspx
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
>
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to