FormsAuthentication cookie problems

From: Scott (ScottLorenz_at_UniversalComputerSys.Com)
Date: 10/03/03


Date: Fri, 3 Oct 2003 14:44:51 -0500

Our website is confugred to use Forms Authentication. The web.config
<authentication> element has the timeout property set to 45 (minutes). We
are setting the cookie using the RedirectFromLoginPage() which should use
the <authentication> timeout value to configure it properly. At least thats
my understanding of how it should work.

Most times we have no problems, but occasionally a request will come into
the server and the client is redirected to the login page for no reason. We
have looked at the IIS logs and the request coming in has the same
authentication cookie that was assigned previously. But all of a sudden IIS
doesn't like it anymore, after a period of 5 or 10 minutes, nothing near the
timeout value.

I have read previous posts that mention Decrypt() occasionally fails to
decrypt the cookie properly, which causes the client to be redirected to
login. Does anyone know if this is a known bug? Does anyone have any other
suggestions?

Any help would be appreciated.

Scott Lorenz
ScottLorenz@UniversalComputerSys.com



Relevant Pages

  • Re: Authentication question
    ... I also found the settings and chose to set a sliding timeout for the ... complained about having to login when I knew their session had not expired. ... > The session timeout and forms authentication cookie timeout are ... > authentication cookie but all of the inproc session state is gone. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Trying to create a secure app that never times out - very confused
    ... forms authentication, and I am trying to have it so that once a user ... The login is handled by the asp.net login control, ... If I look at the cookie expiry it ... Interestingly, if I set the timeout to be short, lets say 1 minute ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Authentication question
    ... The session timeout and forms authentication cookie timeout are ... authentication cookie but all of the inproc session state is gone. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session Variable Alternative
    ... The only way to avoid loss of data on a timeout is to use a cookie and store ... lengthen the timeout of a session in your web.config. ... It doesn't really matter what authentication method you use, ...
    (microsoft.public.dotnet.framework.aspnet)
  • forms authentication
    ... the user has a cookie, and if they do I want to authenticate then and ... I've seen a lot of examples on the internet where the user login details ... are checked and then RedirectFromLoginPage is used, ... view my pages that require authentication. ...
    (microsoft.public.dotnet.framework.aspnet)