Questions tagged [formsauthentication]

109 questions
26
votes
2 answers

Can System.Web be used with ASP.Net Core with Full Framework

We are running serveral sites based on different .Net versions. One of the sites is running .Net 4.6 and ASP.Net MVC 5.xx To use the new syntax for Razor we want to upgrade this site to use .Net 4.6 and ASP.Net Core We use FormsAuthentication on…
TheTechArch
  • 263
  • 1
  • 3
  • 5
14
votes
1 answer

FormsAuthenticationTicket.expiration v web.config value timeout

This is an MVC2 website, I am having a problem with a FormsAuthentication ticket. A user timeouts after 30 minutes cannot re-login. During testing, the DateTime.Now.AddMinutes(30) value was set to 5000 and everything was ok, but it has now changed…
12
votes
1 answer

FormsAuthentication.SignOut throwing NullReferenceException

This problem seems related to this post, but I was not able to infer a solution from the thread. I noticed this code in an application I inherited (after noting in a log file that an exception was being eaten): protected void Session_End(object…
Sean Anderson
  • 27,963
  • 30
  • 126
  • 237
11
votes
1 answer

Possible to have a NodeJS app under iisnode authenticate with ASP.NET FormsAuthentication?

1) We have a NodeJS app that we need to host under IIS 7.5/Win2k8 R2. 2) We have other apps that already use ASP.NET FormsAuthentication. 3) The users that will use the NodeJS app are the same users as existing apps' users. So we put…
9
votes
1 answer

FormsAuthentication.SetAuthCookie vs FormsAuthentication.Encrypt

Question #1: Is setAuthCookie any less safe than FormsAuthentication.Encrypt(ticketVariable)? I mean if anyone tries to modify the cookie created by setAuthCookie, by modifying the username, I suppose that'll violate the authentication on subsequent…
6
votes
7 answers

What could cause ASP.NET FormsAuthentication Cookie problems apart from cookies being turned off?

People are reporting having trouble logging into one of our ASP.NET sites. When I check the IIS logs, it looks like the FormsAuthentication cookie is not being cached by their browsers after they log on. I don't think its as simple as 'user has set…
codeulike
  • 22,514
  • 29
  • 120
  • 167
6
votes
3 answers

Cookie-based Forms Authentication Across MVC 5 and ASP.NET Core applications

I have used forms authentication across different sites already, even between different versions of .NET, but now we're looking into starting a new project in ASP.NET 5 (MVC 6) ASP.NET Core and would like to use cookie-based forms authentication…
5
votes
1 answer

How do I workaround this SSRS authentication exception?

I am trying to implement some custom security code into SSRS 2008 (not R2) to allow for Forms Authentication instead of Windows Authentication. I have based my solution on the Microsoft sample code and have managed to get most of it working…
Markleesy1
  • 101
  • 1
  • 6
5
votes
1 answer

System.Web.Security in Console application

I want to generate HashPasswordForStoringInConfigFile in console application. It is done using the following class in web application System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str_value, "md5") But…
4
votes
1 answer

Renewing forms authentication ticket - strange timing

I'm using Forms Authentication fairly successfully, but have run into a strange issue. I've looked around the web, and haven't found the answer thus far. I'm using some Javascript to determine when the current session is 60 seconds away from timing…
andym0908
  • 151
  • 1
  • 1
  • 6
4
votes
2 answers

Pass returnUrl from ActionLink from view to Login Form that redirects back to view

I have read many SO posts about returnUrl as it pertains to forms authentication by default of [authorize] MyController, but I haven't read anything on simply passing the returnUrl where the only authentication takes place after the [HttpPost] with…
yardpenalty.com
  • 1,244
  • 2
  • 17
  • 32
3
votes
1 answer

Why is ASP.NET FormsAuthentication cookie not authenticating user?

I have a site that uses the default SqlMembershipProvider and FormsAuthentication. I can use the built-in Login Controls and/or programmatically call all the methods to authenticate a user and get the same result - the user is authenticated and a…
Rick
  • 1,863
  • 2
  • 19
  • 46
3
votes
2 answers

Prevent a page or handler from updating the FormsAuthentication ticket

I have several apps on a single domain that share the formsauthentication ticket for single sing-on. We also have javascript on each page that will warn the user 2 minutes prior to his session expiration and allow him to logout or extend his…
3
votes
1 answer

FormsAuthentication.SignOut() using javascript

Does anyone please help me for solving this issue, In my asp.net application, i am using FormsAuthentication.SignOut(); method for sign out the application, but i have one strange requirement that i have to implement the…
MAC
  • 6,277
  • 19
  • 66
  • 111
3
votes
1 answer

Mono MVC5 User.Identity.IsAuthenticated returns false after login with FormsAuthentication.SetAuthCookie()

I am trying to port a MVC5 web application to Linux MonoDevelop. The site is using FormsAuthenication, so on Login action I cal SetAuthCookie() and on my controllers the AuthorizeAttribute to ensure that only logged in users access the…
cnom
  • 3,071
  • 4
  • 30
  • 60
1
2 3 4 5 6 7 8