473,396 Members | 2,068 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,396 software developers and data experts.

How does the session timeout work?

There's a setting in the IIS where I have set Enabled Session Timeout to 20
minutes

Then there's a setting in the WebConfig file..
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

Where I have set the timeout property to 20..

But seriously when you run the application.. it feels like the timeout is
about 5 minutes or actually even a limit of 20 minutes for beeing logged in
period. Sometimes I can be working and I get thrown out anywway even if I
haven't left the application longer than a few seconds.

How do I make the correct settings for a Timeout of 20 minutes?

Best Regards/

Lars Netzel


Nov 19 '05 #1
2 6542
If you are using SQL Server to hold session data this settings will be
important. Otherwise, it would be ignored.
There are two types of session settings.
First, Session object's timeout property. You should set this property when
a session is started.
Second, application configuration. Right Click my computer choose manage.
From Services and Applications, choose Internet Information Services -
Default Web Site and your application. Right Click your application. Choose
properties. On Directory Tab, click Configuration button. From the options
tab set session time out.

I'm not sure, which will override given settings. But this two settings will
help u to overcome this issue.

--
Thanks,
Yunus Emre ALPÖZEN

"Lars Netzel" <la*********@NO-SPAM.qlogic.se> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
There's a setting in the IIS where I have set Enabled Session Timeout to
20 minutes

Then there's a setting in the WebConfig file..
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

Where I have set the timeout property to 20..

But seriously when you run the application.. it feels like the timeout is
about 5 minutes or actually even a limit of 20 minutes for beeing logged
in period. Sometimes I can be working and I get thrown out anywway even if
I haven't left the application longer than a few seconds.

How do I make the correct settings for a Timeout of 20 minutes?

Best Regards/

Lars Netzel



Nov 19 '05 #2
Hi, Lars.

If you use "In Process" state management ( InProc ),
whenever the ASP.NET worker process is recycled
your session variables will get lost.

The new process has no way to know
what the previous process variables were.

To preserve session contents when the recycling of an ASP.NET
worker process occurs, you must use either "State Server" or
"SQL Server" state management.

They both work "out of process", i.e., in a different worker process
than the one ASP.NET uses, so when the ASP.NET worker process
is recycled, the state management worker process continues to work
and your session data isn't lost.

best regards,

Juan T. Llibre
ASP.NET MVP
===========
"Lars Netzel" <la*********@NO-SPAM.qlogic.se> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
There's a setting in the IIS where I have set Enabled Session Timeout to
20 minutes

Then there's a setting in the WebConfig file..
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

Where I have set the timeout property to 20..

But seriously when you run the application.. it feels like the timeout is
about 5 minutes or actually even a limit of 20 minutes for beeing logged
in period. Sometimes I can be working and I get thrown out anywway even if
I haven't left the application longer than a few seconds.

How do I make the correct settings for a Timeout of 20 minutes?

Best Regards/

Lars Netzel



Nov 19 '05 #3

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

Similar topics

8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
5
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
3
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
11
by: OldProgrammer | last post by:
All the documentation and discussion I have read indicate that the Session_End is not supposed to fire unless you are in "inProc" Session state mode, and then only on Session Timeout or at Session...
2
by: Tomas Martinez | last post by:
Hi, Well, my problem is so simple as it says in the subjet but very frustrating also. I have a project and it is losing the session variables with each postback, so I downloaded from the web a...
2
by: Orgil | last post by:
I'm using ASP 3.0 however there is ASP.NET, because I'm working an old site that is built in ASP 3.0. I hope you for getting any help for my problem from you. So, my site's sessions are empty...
11
pbmods
by: pbmods | last post by:
A somewhat obscure hack has emerged recently that is an offshoot of the now-infamous XSS. It is known as Cross-Site Request Forgery, or XSRF for short. XSRF is a form of temporary identity theft...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.