G
Guest
Hello,
I’m developing in ASP.NET using “Forms†authentification:
I’m asking “LOGINâ€, “PASSWORD†and “KEYâ€
Web.config:
<authentication mode="Forms"><forms name=".SOMETHING"
loginUrl="login.aspx"
protection="All"
timeout="5"
path="/"><!--requireSSL="true"--><!-- protection="[All|None|Encryption|Validation]" --></forms></authentication>
As you like read, I am using the attribute protection="All" (encrypting the cookie).
Everything is running very well, “BUT...â€, I have the following doubt:
Is possible that I can apply something like:
vAux = HttpContext.Current.Server.UrlEncode(“LOGINâ€)
LOGIN = HttpContext.Current.Request.Cookies.Get(vAux)
vAux = HttpContext.Current.Server.UrlEncode(“PASSWORDâ€)
PASSWORD = HttpContext.Current.Request.Cookies.Get(vAux)
vAux = HttpContext.Current.Server.UrlEncode(“PASSWORDâ€)
KEY = HttpContext.Current.Request.Cookies.Get(vAux)
for getting DESENCRYPTED values?? (I know that the code above is not correct)
I need that values for using its with others functions.
Could someone help me?
Thanks in advance!,
l-touched
I’m developing in ASP.NET using “Forms†authentification:
I’m asking “LOGINâ€, “PASSWORD†and “KEYâ€
Web.config:
<authentication mode="Forms"><forms name=".SOMETHING"
loginUrl="login.aspx"
protection="All"
timeout="5"
path="/"><!--requireSSL="true"--><!-- protection="[All|None|Encryption|Validation]" --></forms></authentication>
As you like read, I am using the attribute protection="All" (encrypting the cookie).
Everything is running very well, “BUT...â€, I have the following doubt:
Is possible that I can apply something like:
vAux = HttpContext.Current.Server.UrlEncode(“LOGINâ€)
LOGIN = HttpContext.Current.Request.Cookies.Get(vAux)
vAux = HttpContext.Current.Server.UrlEncode(“PASSWORDâ€)
PASSWORD = HttpContext.Current.Request.Cookies.Get(vAux)
vAux = HttpContext.Current.Server.UrlEncode(“PASSWORDâ€)
KEY = HttpContext.Current.Request.Cookies.Get(vAux)
for getting DESENCRYPTED values?? (I know that the code above is not correct)
I need that values for using its with others functions.
Could someone help me?
Thanks in advance!,
l-touched