Ask a Question related to ASP.NET Security, Design and Development.
-
Tom Smit #1
Windows Auth Problem
We're having a problem where our application is timing out
after 60 minutes no matter what type of activity is
occuring. A user can be in the middle of a server call
and it will timeout after 60 minutes. This only occurs
with Windows authentication and not forms based.
We have the following in the web.config:
<authentication mode="Windows">
<forms loginUrl="Login.aspx" name="RiskLogin"
timeout="120" path="/">
</forms>
</authentication>
<sessionState mode="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user
id=sa;password=" cookieless="false" timeout="120" />
Where is this 60 minute timeout coming from? Am i missing
something?
Tom Smit Guest
-
Forms Auth Info passed to Windows Auth?
The requirement is to build an ASP.Net intranet application, so external users can log in to the main web portal via forms authentication, using... -
ASP.NET 2.0 - Windows Auth and Roles
Is it possible to use Windows authentication and the builtin role provider in ASP.NET 2 Beta 2? The intranet app I'm developing uses Windows... -
question on windows auth
Hi I am working on an intranet application. I am using windows integrated authentication. Now since the authentication is done by active directory... -
Configuring Windows Auth & Forms Auth in Asp.Net
Configuring Windows Auth & Forms Auth in Asp.Ne Hi, I've configured a web app to use windows authentication and also set up two separate... -
Windows Auth, MUST change password
If a user's password expires or an admin otherwise set the "user must change password" flag it appears that a user can no longer access the web... -
Andrew #2
Re: Windows Auth Problem
Tom,
Here is a snippet from the machine.config file:
<authentication mode="Windows">
<!--
forms Attributes:
name="[cookie name]" - Name of the cookie used for Forms
Authentication
loginUrl="[url]" - Url to redirect client to for Authentication
protection="[All|None|Encryption|Validation]" - Protection mode for
data in cookie
timeout="[minutes]" - Duration of time for cookie to be valid (reset
on each request)
path="/" - Sets the path for the cookie
requireSSL="[true|false]" - Should the forms-authentication cookie
be sent only over SSL
slidingExpiration="[true|false]" - Should the
forms-authentication-cookie and ticket be re-issued if they are about to
expire
-->
<forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All"
timeout="30" path="/" requireSSL="false" slidingExpiration="true"></forms>
</authentication>
I am not entirely positive about this, but you may try adding the
"slidingExpiration" attribute to your web.config file. It is supposed to
reissue the authentication cookie every time a request is sent to the
server...at least the way I understand what I read in the documentation.
You can set the "timeout" period to whatever you like, but the sliding
expiration keeps the session alive as long as someone is actively using it.
I think this is so you can have short timeout periods but not worry too much
about loosing your users.
Give it a shot, but I thought if nothing else it was woth a try. :)
-- Andrew
"Tom Smit" <tsmit@nospam.com> wrote in message
news:%2353V0dMHEHA.3700@TK2MSFTNGP09.phx.gbl...> We're having a problem where our application is timing out
> after 60 minutes no matter what type of activity is
> occuring. A user can be in the middle of a server call
> and it will timeout after 60 minutes. This only occurs
> with Windows authentication and not forms based.
>
> We have the following in the web.config:
>
> <authentication mode="Windows">
> <forms loginUrl="Login.aspx" name="RiskLogin"
> timeout="120" path="/">
> </forms>
> </authentication>
>
> <sessionState mode="StateServer"
> stateConnectionString="tcpip=127.0.0.1:42424"
> sqlConnectionString="data source=127.0.0.1;user
> id=sa;password=" cookieless="false" timeout="120" />
>
>
> Where is this 60 minute timeout coming from? Am i missing
> something?
>
>
Andrew Guest



Reply With Quote

