G
G-Fit
Hello group,
I use Forms Authentication in my web application and I am not sure I
understand the way the cookie works.
I use the SetAuthCookie method with a database identifier as userName, as
I would like the website to remember who is logged in (and I guess it
doesn't matter wether I store a name or an identifier, which is much more
convenient for me) :
FormsAuthentication.SetAuthCookie(reader["CTC_ID"].ToString(), true);
But then, I don't find any way to get it back later. The cookie contains
a very long string, is it encrypted ? Or do I need to set up a special
cookie to store my identifier ?
Karine Proot
G-Fit
I use Forms Authentication in my web application and I am not sure I
understand the way the cookie works.
I use the SetAuthCookie method with a database identifier as userName, as
I would like the website to remember who is logged in (and I guess it
doesn't matter wether I store a name or an identifier, which is much more
convenient for me) :
FormsAuthentication.SetAuthCookie(reader["CTC_ID"].ToString(), true);
But then, I don't find any way to get it back later. The cookie contains
a very long string, is it encrypted ? Or do I need to set up a special
cookie to store my identifier ?
Karine Proot
G-Fit