For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > August 2004 > RE: log in script kicks me out









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: log in script kicks me out
Irm Jr

2004-08-27, 3:56 pm

I have attempted to use session_write_close() but it makes no
difference. Thanks for your help.

Any other ideas I might be be able to try?

Upon doing a quick search using something like "$_SESSION second time" I
see that there are a number of others who seem to have similar problems,
and no solutions.



-----Original Message-----
Sent: Tuesday, August 17, 2004 7:08 AM

Irm Jr wrote:

> Each page checks for a particular session variable, if it isn't set to


> a particular value, the intruder is kicked out to the login form and=20
> asked to log in.
>=20
> The problem is this:
>=20
> On the production machine, even with a correct username and password=20
> (i.e. a successful login), the user is ALWAYS kicked back out and=20
> asked to log in. However, typing exactly the same information a=20
> second time allows the user right in. You can tell that the first=20
> attempt was successful because the script executes the header:Location


> .


Use session_write_close() before your header() redirection.

--=20

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals - www.phparch.com
Torsten Roehr

2004-08-27, 3:56 pm

>"Irm Jr" <irmjr@CART.ORG> wrote in message
news:B4A64F3A0C84B346BEAB2513306F10FC145
730@fatexchange.CART.ADS...
>I have attempted to use session_write_close() but it makes no
>difference. Thanks for your help.
>
>Any other ideas I might be be able to try?
>
>Upon doing a quick search using something like "$_SESSION second time" I
>see that there are a number of others who seem to have similar problems,
>and no solutions.


I couldn't see in your messages what PHP version you are using. Any chance
to upgrade to 4.3.8?

Regards, Torsten Roehr
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com