TC
-
11/26/2008 9:11:12 AM
RE:Encrypted Cookie
Hi Boris,
I have tried overriding OnAuthentication in the CustomSecurityHandler to add a cookie to the Cookies Collection which contains encrypted data (using standard FormsAuthentication). However, for some reason all my cookies are removed during the authentication process (I am using a cloned copy of the LogonMiniForm web part). Using standard FormsAuthentication methods I can add data to a cookie which is encrypted and cannot be read without decryption.
Is it possible to add additional cookies to the cookies collection?
If this is not possible, I am wondering if it is possible to use the CookieHelper class to add values to the standard cookie but to encrypt the values? Currently, if I use CookieHelper.SetValue, the Key/Value pairs are stored in the cookie in plain text.
Thank you for your assistance. TC
|