Hi, I would like to request the authenticated user and I cannot find in webpages security how to retrieve that information. the code that I´trying to recreate is something like:
if (WebSecurity.IsAuthenticated && WebSecurity.HasUserId)
{
user= WebSecurity.CurrentUserId();
return user;
}
but of course I receive an error... additionally does anyone knows if webmatrix creates an authentication cookie?, if yes does anyone knows how to retrieve that we proceed with formsauthentication.formscookiename, brgds!
sebastianh
Member
86 Points
40 Posts
Get Authenticated User...
Feb 24, 2012 07:07 PM|LINK
Hi, I would like to request the authenticated user and I cannot find in webpages security how to retrieve that information. the code that I´trying to recreate is something like:
if (WebSecurity.IsAuthenticated && WebSecurity.HasUserId) { user= WebSecurity.CurrentUserId(); return user; }but of course I receive an error... additionally does anyone knows if webmatrix creates an authentication cookie?, if yes does anyone knows how to retrieve that we proceed with formsauthentication.formscookiename, brgds!