467,211 Members | 1,220 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,211 developers. It's quick & easy.

Sessions and Forms Authentication Cookie

I have a folder on my site secured with Forms Authentication. After the user
is authenticated, I set a session level variable.

The session time on the server is set to 20 mins. I am guessing the default
expiry time for the Forms Authentication cookie is 30 mins? Is this correct?

So after 20 mins, the session expires (assuming no user activity), but
because the forms auth cookie is still alive, users are not redirected to
the login page. The other pages are not able to read the session level
variable cuz the session has already expired.

How do I go about changing the forms cookie expiry time? I've seen a timeout
attribute to the forms tag that is used in Web.Config.. Is this what I
should be using?
Nov 18 '05 #1
  • viewed: 1525
Share:
1 Reply
You can also set the expiration time of the forms authentication cookie in
your web.config file.
I set it so it's the same as my session timeout.
"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
I have a folder on my site secured with Forms Authentication. After the
user
is authenticated, I set a session level variable.

The session time on the server is set to 20 mins. I am guessing the
default
expiry time for the Forms Authentication cookie is 30 mins? Is this
correct?

So after 20 mins, the session expires (assuming no user activity), but
because the forms auth cookie is still alive, users are not redirected to
the login page. The other pages are not able to read the session level
variable cuz the session has already expired.

How do I go about changing the forms cookie expiry time? I've seen a
timeout
attribute to the forms tag that is used in Web.Config.. Is this what I
should be using?

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by ElmoWatson | last post: by
1 post views Thread by Scott | last post: by
5 posts views Thread by SOS | last post: by
reply views Thread by Anonieko Ramos | last post: by
1 post views Thread by Thomas Scheiderich | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.