Ask a Question related to ASP.NET Security, Design and Development.
-
Scott #1
Problem with Forms Authentication cookies
Hi,
We're having an issue with Forms Authentication cookies being treated as
expired / invalid, and being deleted. This is causing our intranet users a
great deal of pain
- Running IIS 5.0 on Win2k Server
- Forms Authentication is setup with a timeout value of 45 minutes in
web.config
- Session timeout is set to 45 minutes in web.config
In viewing the IIS logs, we an see a request for an aspx page (a POST) with
a response of 302. The log shows the cookies sent in with the request -
only 2, the ASP.NET_SessionID cookie and the Forms Authentication cookie,
which we named CSSAuth.
The next request coming is is a GET request for the Forms Authentication
login aspx page. The query string contains the url of the originally
requested page. In this request there is only one cookie - the
ASP.NET_SessionID cookie. The CSSAuth cooke is NOT THERE in this request.
In looking at the logs for NORMAL expired authentication redirects these
requests always contain the CSSAuth cookie, even though it is ezpired. In
the cases where users get redirected to login prior to authentication
timeout, the cookie is missing from the GET request issued in response to
the redirect.
Why is this authentication ticket cookie seen as invalid prior to timeout?
Why is this cookie being removed? What piece of code is responsible for
doing all this?
Scott L.
Scott Guest
-
Forms authentication / cookies
Hi! I'm just curious about the use of cookies in forms authentication. The username and roles are stored in the encrypted cookie, but if a user... -
Problem in forms authentication
Hi friends, We have an web application which contains several folders & we are trying to implement forms authentication. Login page for the... -
forms authentication problem
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying... -
Forms Authentication Problem with WebRequest (Tried Everything)
Hello, all, I have done my homework, but I can not get my webrequest to access a page which is protected by forms authentication. As other... -
Problem with Forms Authentication
I have an application using FormsAuthentication that does not persist the authentication cookie beyond the session so each time a user starts a... -
Rajesh.V #2
Re: Problem with Forms Authentication cookies
We had the same problem, after lot of hunting, we found, running Antivirus
software causes the web.config, global.asax or the dll to be touched. The
causes the workerprocess to recycle and u loose all session. And this
happens randomly, and sessions dont last beyond 3 mins.
The best solution is using out of process session management. That is in an
sql server.
"Scott" <ScottLorenz@UniversalComputerSys.Com> wrote in message
news:OtxKLh1kDHA.2500@TK2MSFTNGP10.phx.gbl...with> Hi,
>
> We're having an issue with Forms Authentication cookies being treated as
> expired / invalid, and being deleted. This is causing our intranet users a
> great deal of pain
>
> - Running IIS 5.0 on Win2k Server
> - Forms Authentication is setup with a timeout value of 45 minutes in
> web.config
> - Session timeout is set to 45 minutes in web.config
>
> In viewing the IIS logs, we an see a request for an aspx page (a POST)In> a response of 302. The log shows the cookies sent in with the request -
> only 2, the ASP.NET_SessionID cookie and the Forms Authentication cookie,
> which we named CSSAuth.
>
> The next request coming is is a GET request for the Forms Authentication
> login aspx page. The query string contains the url of the originally
> requested page. In this request there is only one cookie - the
> ASP.NET_SessionID cookie. The CSSAuth cooke is NOT THERE in this request.
>
> In looking at the logs for NORMAL expired authentication redirects these
> requests always contain the CSSAuth cookie, even though it is ezpired.> the cases where users get redirected to login prior to authentication
> timeout, the cookie is missing from the GET request issued in response to
> the redirect.
>
> Why is this authentication ticket cookie seen as invalid prior to timeout?
> Why is this cookie being removed? What piece of code is responsible for
> doing all this?
>
> Scott L.
>
>
Rajesh.V Guest



Reply With Quote

