G
goscottie
I have web project that doesn't require strict authentication. So I
put a persistent Forms Authentication so that user can come back any
time and doesn't have to log in (authentication timeout set to
something big, like 300000). So far so good. Problem occurs when
user closes the browser, thus killing the session and losing
Session["UserId"] which I use extensively throughout the application.
Only workaround I see is that to create a custom FormsAuthentication
ticket and include the UserID there and restore to Session["UserId"].
Questions..
1. Is there another way around? To keep user identity handy even
after browser was closed and prevent user from login again.
2. Where can I (which method or event) attempt to restore the Session
value so that I only have to do this once.
TIA.
put a persistent Forms Authentication so that user can come back any
time and doesn't have to log in (authentication timeout set to
something big, like 300000). So far so good. Problem occurs when
user closes the browser, thus killing the session and losing
Session["UserId"] which I use extensively throughout the application.
Only workaround I see is that to create a custom FormsAuthentication
ticket and include the UserID there and restore to Session["UserId"].
Questions..
1. Is there another way around? To keep user identity handy even
after browser was closed and prevent user from login again.
2. Where can I (which method or event) attempt to restore the Session
value so that I only have to do this once.
TIA.