E
Eric
I want to use forms authentication, but since the forms authentication
cookie is not updated all the time, I want to use server-side to check for
validation user's login status/information. If I create an unique session
key and store it in the forms authentication cookie as custom data, can I
check on every Application_BeginRequest() if the cookie is expired, and if
the cookie is expired but the session key is valid (validated against the
database), call FormsAuthentication.RenewTicketIfOld and re-set the forms
authentication cookie?
It looks like this would be a good check for making sure that if someone
steals the forms authentication cookie and somehow decrypts it, they still
wouldn't be able to login because of a server-side check? Or maybe this is
not necessary, creates overhead, and not secure at all? I just want some
opinions.
Thanks in advance,
Eric
cookie is not updated all the time, I want to use server-side to check for
validation user's login status/information. If I create an unique session
key and store it in the forms authentication cookie as custom data, can I
check on every Application_BeginRequest() if the cookie is expired, and if
the cookie is expired but the session key is valid (validated against the
database), call FormsAuthentication.RenewTicketIfOld and re-set the forms
authentication cookie?
It looks like this would be a good check for making sure that if someone
steals the forms authentication cookie and somehow decrypts it, they still
wouldn't be able to login because of a server-side check? Or maybe this is
not necessary, creates overhead, and not secure at all? I just want some
opinions.
Thanks in advance,
Eric