ASP.NET MVC FormsAuthentication Cookie timeout cannot be increased
Using the default ASP.NET MVC template, I cannot figure out how to increase the FormsAuthentication timeout. It seems to always use 30 minutes.
Using the default ASP.NET MVC template, I cannot figure out how to increase the FormsAuthentication timeout. It seems to always use 30 minutes.
I have an asp.net app which needs to log users into Active Directory using forms authentication (windows authentication isn’t an option with the given requirements).
I am creating a cookie and storing the value of username after succesfull login. How can I access the cookie when the website is opened. If the cookie exist I want to fill the username text box from the cookie value. And how to decrypt the value to get the username. I am doing server side validation by getting the userdetails from the database. I am using vs 2010 with c#
Is there any good reason why ASP.NET’s session state cookie and the Forms Authentication cookie are two separate cookies? What if I want to “tie” them to each other? Is it possible in an elegant way?
Here’s the situation:
My ASP.NET Forms 4.0 site is running with forms authentication. By default unauthorized users are denied, and then I allow access to certain pages.
I have a problem allowing access to the default url: http:/example.com. I have this entry in web.config that defines default page:
I know the security risk associated and have brought it up with the business, but they want to have their 5 domains to share the login cookie.
I am building an ASP.NET web site that uses FormsAuthentication and a standard Session mechanism with configuration like:
I am creating my own authentication ticket using the following code:
I’m trying to use FormsAuthentication and it’s working fine at the moment with user name and password. I need to add User Role to the Forms authentication Ticket and i’m not using ASP.NET Membership.