Using sessions like cookies
Posted: Thu Jun 23, 2005 4:54 pm
There is one thing that has been bugging me recently, Its that when my code has created a session, The session gets destroyed when the user closes the browser... I HAVE managed to find away around it, But it does have major flaws...
Basicly, My idea is to store the users IP when he/she logs in. Then every time they goto a page on my site, It checks for their ip stored on login then recreates the session.
Obviously, You can all see what could go wrong if two people have the same IP (If they are on a LAN, For instance)
So my question is... Is there any way that I can get like some unique info about the computer that the user is on then use that instead of the ip?
Thanks in advance, Matt.
Basicly, My idea is to store the users IP when he/she logs in. Then every time they goto a page on my site, It checks for their ip stored on login then recreates the session.
Obviously, You can all see what could go wrong if two people have the same IP (If they are on a LAN, For instance)
So my question is... Is there any way that I can get like some unique info about the computer that the user is on then use that instead of the ip?
Thanks in advance, Matt.