This topic is locked

login cookies

8/18/2004 02:47:25
ASPRunnerPro General questions
T
Toad author

Hi, I do not want my session to expire, or at least remain active for 24 hours. How do I modify the login.asp to accomplish this.
Thanks

S
Scruffy 8/18/2004

I dont have login pages, but maybe change cookies to expire Now() + 1 instead of Now()

T
Toad author 8/19/2004

It tried the following, but it did not seam to work.
If Request("btnSubmit") = "Login" Then

If Request("remember_password") = "1" Then

Response.Cookies("username") = Request("username")

Response.Cookies("username").Expires = DateAdd("y", 12, Now()+1)

Response.Cookies("password") = Request("password")

Response.Cookies("password").Expires = DateAdd("y", 12, Now()+1)

strChecked = " checked"

Else

Sergey Kornilov admin 8/28/2004

Toad,
you can set session expiration time in Internet Information Services management console. You cannot change it through login.asp file.