Using this code for authentification: HttpContext.Current.User=new GenericPrincipal (new GenericIdentity(user.UserName), roles);
I am using an ASP Login control to authenticate users, however even if the user doesn\'t check the \'Remember Me\' check box the user will not be forgotten, even if they close thei开发者_如何学编程r b
I Use windows authentication with profile and wanted to flip to a custom authentication. My question is How can I specify that my user is authenticated and how to set the Profile.UserName.
When a user log into my asp.net site I use the following code: FormsAuthentication.RedirectFromLoginPage(userid, false);
When a user logins into my site i create the following authenticate ticket: // Create the authentication ticket
I am using Form Authentication in an ASP.NET MVC project. When the current user click on the Exit link the code execute an action that does in sequence:
I have a silverlight application protected by forms authentication.I want the开发者_C百科 forms authentication to stay alive as long as the silverlight application is up.
I have an application that works great on localhost with forms authentication. I deployed it to the deployment开发者_如何学Python machine and it to the build machine and received and endless set of 3
I\'m developing a MVC2 application and using Forms Authentication on it. The scripts, images and styles are all blocked to unlogged users and, consequently, the login page looks awful.
I have an ASP.NET WebForms page with forms authentication. When users create a login, I use \'remember me\' to create the authentication cookie.