473,419 Members | 1,570 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,419 software developers and data experts.

Session object timout

Hi

I have an application that is designed for multi clients, therefore users
must go through a login page. Upon logging in I set some properties in a
class, one of which is the user id (integer) retrieved from the SQL db and
also the company id that successfully logged in. I then add this this class
to a session object which I named "CurrentUserInfo".

Since the app relies on retrieving only information for the company of which
the user belongs, I added a small check on the Page_Load of each web form to
make sure that the session id of the user not zero (has to be - it's a
identity from table). If the check fails then I redirect the user back to
the login page so the have to login again, thus recreating the session
object which holds the class I mentioned above.

Since several of our clinets like to use this app like a windows app, or
rather the log in and then leave thier browser open while they talk on the
phone, go to lunch et.. they complained that it was inconvient that they had
to always relog in. So in the web.config I upped the sessionstate "Timeout"
value to 180 (3 hours).

However, I'm still getting complaints that they are getting bumped back to
the login page. I tested this myself by loggin in and leaving my browser
window open, and sure enough I get bumped after 20-30 min. It varies, but
certainly not 3 hours.

Does anyone have any ideas on why my session object is timing out?

TIA

Steve
Nov 19 '05 #1
2 1282
Hello Steve,

Aside from the fact that I kind of like an application timing out for security
reasons, I'll try to respond to your question :) You are not specifying your
OS and IIS level, but the phenomenon may be caused by the default "Idle Timeout"
setting of the Application Pool that your ASP.NET app is running in. The
Application pool was introduced in Windows 2003 with IIS 6.0, to better manage
your ASP.NET application amongst others for stability purposes. You can find
and change this setting by doing the following:
- Open IIS Manager
- Expand the "Application Pools" node
- Expand the "DefaultAppPool" (you should see your ASP.NET application in
the list, otherwise try to find it in a different pool)
- Right-Click on the "DefaultAppPool" and click "Properties"
- Navigate to the "Performance Tab"
- Change the "Idle Timeout" to the desired value.

Good luck,
Dennis
Hi

I have an application that is designed for multi clients, therefore
users must go through a login page. Upon logging in I set some
properties in a class, one of which is the user id (integer) retrieved
from the SQL db and also the company id that successfully logged in.
I then add this this class to a session object which I named
"CurrentUserInfo".

Since the app relies on retrieving only information for the company of
which the user belongs, I added a small check on the Page_Load of each
web form to make sure that the session id of the user not zero (has to
be - it's a identity from table). If the check fails then I redirect
the user back to the login page so the have to login again, thus
recreating the session object which holds the class I mentioned above.

Since several of our clinets like to use this app like a windows app,
or rather the log in and then leave thier browser open while they talk
on the phone, go to lunch et.. they complained that it was inconvient
that they had to always relog in. So in the web.config I upped the
sessionstate "Timeout" value to 180 (3 hours).

However, I'm still getting complaints that they are getting bumped
back to the login page. I tested this myself by loggin in and leaving
my browser window open, and sure enough I get bumped after 20-30 min.
It varies, but certainly not 3 hours.

Does anyone have any ideas on why my session object is timing out?

TIA

Steve

Nov 19 '05 #2
Thanks Dennis!

I just changed the setting, so hopefully that'll do the trick. My test
platform is XP Pro, production machine is Win 2003. I never knew this
setting even existed.

Yeah - I didn't like the idea of increasing to 3 hours, & I did point out
the security risks to the higher aboves. But seeing as my paycheck is signed
by someone else... Need I say more? I'm sure there are many programmers out
there that are victims (and end up paying for) poor decisions by non
programmers for the sake of $$$.. Sigh..

Steve
"Dennis Wijnker" <Re***@to.Newsgroup.net> wrote in message
news:11********************@news.west.cox.net...
Hello Steve,

Aside from the fact that I kind of like an application timing out for
security reasons, I'll try to respond to your question :) You are not
specifying your OS and IIS level, but the phenomenon may be caused by the
default "Idle Timeout" setting of the Application Pool that your ASP.NET
app is running in. The Application pool was introduced in Windows 2003
with IIS 6.0, to better manage your ASP.NET application amongst others for
stability purposes. You can find and change this setting by doing the
following:
- Open IIS Manager
- Expand the "Application Pools" node
- Expand the "DefaultAppPool" (you should see your ASP.NET application in
the list, otherwise try to find it in a different pool)
- Right-Click on the "DefaultAppPool" and click "Properties"
- Navigate to the "Performance Tab"
- Change the "Idle Timeout" to the desired value.

Good luck,
Dennis
Hi

I have an application that is designed for multi clients, therefore
users must go through a login page. Upon logging in I set some
properties in a class, one of which is the user id (integer) retrieved
from the SQL db and also the company id that successfully logged in.
I then add this this class to a session object which I named
"CurrentUserInfo".

Since the app relies on retrieving only information for the company of
which the user belongs, I added a small check on the Page_Load of each
web form to make sure that the session id of the user not zero (has to
be - it's a identity from table). If the check fails then I redirect
the user back to the login page so the have to login again, thus
recreating the session object which holds the class I mentioned above.

Since several of our clinets like to use this app like a windows app,
or rather the log in and then leave thier browser open while they talk
on the phone, go to lunch et.. they complained that it was inconvient
that they had to always relog in. So in the web.config I upped the
sessionstate "Timeout" value to 180 (3 hours).

However, I'm still getting complaints that they are getting bumped
back to the login page. I tested this myself by loggin in and leaving
my browser window open, and sure enough I get bumped after 20-30 min.
It varies, but certainly not 3 hours.

Does anyone have any ideas on why my session object is timing out?

TIA

Steve


Nov 19 '05 #3

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

Similar topics

1
by: Bekala | last post by:
I am trying to figure out how much of overhead there will be using session object per user in KB. I am trying to create an internet site. I will be setting session timout to 1 hour. There won't be...
6
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
4
by: mg | last post by:
I can't get WebForm1 to load load automatically after a session timeout, with the following code. How can I do so In Web.config <sessionState mode="InProc timeout="1" / In Global.asax.cs
1
by: Jennifer | last post by:
Hello everybody my ASP.NET app is running fine on my development system. But some errors occured after installation on another server. I believe the reason is a session timeout My question is...
18
by: Rippo | last post by:
Hi I am using role base forms authentication in asp.net and have come across a problem that I would like advice on. On a successful login a session variable is set to identify a user. This is...
1
by: bhasky | last post by:
We have two production server, Prod server 1 giving error Session Timout before 90min where it has been set 90 in global.asa Differences Prod Ser 1 : Windows 2003, No Service Pack Installed...
14
by: GaryDean | last post by:
The web.config in my asp.net application, running on Server2003, has this entry: <sessionState mode="InProc" timeout="40". In IIS the asp.net State Management timeout setting is 40 for my website....
2
by: =?Utf-8?B?bWF2cmlja18xMDE=?= | last post by:
Hi, I have an application which is using Form Authenticatoin. I have set the timout to 120 (minutes). Does the sessionState setting in the web.config effect it? If I leave the sessionState...
7
by: anithaapr05 | last post by:
Hi, I am creating a session when user successfully login to the site and user gets a form to input some data into database. Assume that user entered data into some fileds and let the browser...
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: 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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.