Hi All;
I have been having this problem for a while now and have merely been shrugging it off as not really too serious.
For the backends of my site I use forms authentication to authenticate users before they can access the admin areas. When a user's login details are confirmed I instantiate a Session object to store their user id in (for use throughout the admin areas) and I then execute the usual formsauthentication.redirect method.
The problem I seem to have (especially during development) is that the Session object often gets killed and my page throws an error stating that the Session object does not exist. Shouldn't the page redirect to the login page if these details have been lost?
Is this because the formsauthentication uses cookies rather than sessions, so the cookie is still active however the session object is dead? That's my best guess. Does anyone have a recommendation on how I might go about resolving this issue.
Thank you for any and all help.
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I have been having this problem for a while now and have merely been shrugging it off as not really too serious.
For the backends of my site I use forms authentication to authenticate users before they can access the admin areas. When a user's login details are confirmed I instantiate a Session object to store their user id in (for use throughout the admin areas) and I then execute the usual formsauthentication.redirect method.
The problem I seem to have (especially during development) is that the Session object often gets killed and my page throws an error stating that the Session object does not exist. Shouldn't the page redirect to the login page if these details have been lost?
Is this because the formsauthentication uses cookies rather than sessions, so the cookie is still active however the session object is dead? That's my best guess. Does anyone have a recommendation on how I might go about resolving this issue.
Thank you for any and all help.
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)