Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: log in script kicks me out
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

Report this thread to moderator Post Follow-up to this message
Old Post
Irm Jr
08-27-04 08:56 PM


Re: log in script kicks me out
>"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

Report this thread to moderator Post Follow-up to this message
Old Post
Torsten Roehr
08-27-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.