PHP Session Cookies fail with users changing IP

Posted by Columbo on Stack Overflow See other posts from Stack Overflow or by Columbo
Published on 2010-02-19T13:32:07Z Indexed on 2010/04/26 22:43 UTC
Read the original article Hit count: 396

Filed under:
|
|
|

Hello, I have a login script for a small application that works by storing session cookies and checking them on each page to make sure the user is logged in. One of the two users who uses the system keeps getting logged out randomly. This appears to be down to the session cookie that shows then authenticated no longer being present.

After a lot of investigation the only thing I can see that is different about this user is that their IP address is changing (today it was changing every hour (their on Sky)). The only thing is the change of IP address has happened 5 times this morning and only once has the user been logged off.

Has anyone had a similar issue?

Are session cookies in someway tied to IP addresses?

Any help or links much appreciated.

Thanks

C

© Stack Overflow or respective owner

Related posts about php

Related posts about session