Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message>"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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.