473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

form authentication time out less then what is set in web.config

we have a webapp using form authentication, and the time out is set at 120
minutes, so whenever a session is idle for > 120 minutes or so, it will make
the user sign in again.

This seems to be working okay on my developement machine (xp sp1) and on our
staging machine (win server 2003). However, on our production machine
(window 2000 server with latest SP). it times out some where between 20-30
minutes.

We are using sqlserver to store session state at all 3 places.

All 3 machine is running .net framework 1.1

The following are related lines from the web.config file.

<authentication mode="Forms">
<forms name="login" path="/" loginUrl="login.aspx" protection="All"
timeout="110">
<credentials passwordFormat="Clear">
</credentials>
</forms>
</authentication>
<sessionState mode="SQLServer"
stateConnectionString="tcpip=mystatserver.company. com:42424"
sqlConnectionString="data source=mystateserver.company.com;user
id=IDHERE;password=YAPPASSWORD" cookieless="false" timeout="120"/>

and the session time out setting on the IIS server is set to 120.

Are there other place I need to set in order for this to work?

TIA

Ben

Nov 18 '05 #1
1 2607
if you use the sqlserver session manager, the session timeout is totally
controlled by the cookie, or the delete sessions stored proc deleteing the
session data (there is no end session). check the session cookie first.

-- bruce (sqlwork.com)

"Ben S" <Be**@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
we have a webapp using form authentication, and the time out is set at 120
minutes, so whenever a session is idle for > 120 minutes or so, it will make the user sign in again.

This seems to be working okay on my developement machine (xp sp1) and on our staging machine (win server 2003). However, on our production machine
(window 2000 server with latest SP). it times out some where between 20-30
minutes.

We are using sqlserver to store session state at all 3 places.

All 3 machine is running .net framework 1.1

The following are related lines from the web.config file.

<authentication mode="Forms">
<forms name="login" path="/" loginUrl="login.aspx" protection="All"
timeout="110">
<credentials passwordFormat="Clear">
</credentials>
</forms>
</authentication>
<sessionState mode="SQLServer"
stateConnectionString="tcpip=mystatserver.company. com:42424"
sqlConnectionString="data source=mystateserver.company.com;user
id=IDHERE;password=YAPPASSWORD" cookieless="false" timeout="120"/>

and the session time out setting on the IIS server is set to 120.

Are there other place I need to set in order for this to work?

TIA

Ben

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: ElmoWatson | last post by:
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 to get Forms Authentication working.....I can get...
3
by: Martin | last post by:
Dear fellow ASP.NET programmer, I stared using forms authentication and temporarily used a <credentials> tag in web.config. After I got it working I realized this wasn't really practical. I...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
4
by: Bennett Haselton | last post by:
If I add this to my web.config file: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /> </authentication> I can configure the...
2
by: Asim | last post by:
I am trying to use Forms-based authentication. I followed MS Support Q301240 article. I want to control access to a folder (swhouse) and its contents. Below is the sample of actual web.config. ...
5
by: Maziar Aflatoun | last post by:
Hi everyone, I have a login .aspx page that I like to forward my users to. However, can't do it using <authorization> ..... </authorization> because I need anonymous users to use it without...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
8
by: Sergey V | last post by:
Hi, I need to cover by custom authentication algorithm both ASP.NET and other resources within the site. FormsAuthentication covers only resources beeing handled by ASP.NET. Other generic...
0
by: sandari | last post by:
The following code (web.config in Visual Studio 2005) is supposed to redirect a user to the appropriate Form depending on their role. However, regardless of the user's role, the only page...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.