Okay, here's the scoop. I've tried writing a decent login script for my webpage. I never go wrong with Session variables. I mean, they stay set for the time the browser is open and I can access all the secure pages, but what I want to do is to be able to close to browser, reopen it, and stay logged in. I tried cookies and they unset for some reason! I checked it with print_r and the cookie isn't there anymore when I reopen the browser, even though I set the expiration to a whole year! (time() + 60*60*24*365)
Is there any other way to have a solid login system that stays logged in even when the browser is closed?
Hell, I even tried using IP addresses at one point, but some people couldn't log in because their IP changed.
Any help or direction towards help or a tutorial would be great. Thanks!
E: Oh, and right now my server is on my laptop, with Apache, so my site is located at 127.0.0.1, just in case that makes a problem for cookies and I didn't know.
Login system troubles
Moderator: General Moderators
-
NessTheHero
- Forum Newbie
- Posts: 3
- Joined: Thu Oct 13, 2005 1:23 pm
- Location: Eagleland
-
NessTheHero
- Forum Newbie
- Posts: 3
- Joined: Thu Oct 13, 2005 1:23 pm
- Location: Eagleland
-
NessTheHero
- Forum Newbie
- Posts: 3
- Joined: Thu Oct 13, 2005 1:23 pm
- Location: Eagleland