Topic: "Automatic login system" (page 1 of 1)

1
Author Post
bartlousberg
groupmaster
you're login expires after 30 minutes or something, that's pretty logical
but why not make an optional function to make a cooky that doesn't expire for a month that will automatically log you.

Bart
private message
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
Hello :-)

I know this problem and I really tried everything I could imagine: setting the session-parameters, time-outs, even manually setting a cookie. But nothing worked, simply nothing. I can try it again but I don't have much hope that it'll work this time...

bye, Erik :-)
private message EMail Website
unknown user
sounds like you are using sessions ?

i just use:

setcookie ("key",$cookiekey, time()+31536000,"/");

etc
EMail
unknown user
and to get it back:

if(isset($HTTP_COOKIE_VARS[[]'key'[]]))
{ $cookiekey=$HTTP_COOKIE_VARS[[]'key'[]];
EMail
Erik
groupmastergroupmastergroupmastergroupmastergroupmaster
Hello :-)

thank you, I tried out all this stuff, really. I don't know what to do; so I gave it up.

bye, Erik :-)
private message EMail Website
bartlousberg
groupmaster
the problem is that the server removes sessions after a specified time (on most servers 20 / 30 minutes)
besides a normal cookie with the session id you have to make a cookie wich lasts a bit longer (see previous posts) wich contains the username and the password and NOT a session-id because the server doesn't remember it

Bart
private message

Topic: "Automatic login system" (page 1 of 1)

1