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

session time out

Hi,

I have a application which i would require to use for two different set of
users. For one set of users i need to set the session timeout as 60 minutes,
which i can configure using web.config. But for the other set of users i
need to set the session timeout as infinite, which means the session should
not get expired.

So please some one help me out how to set this property in ASP.NET.

I have developed the application using ASP.NET with C#.

Thanks,
S.Rajagopal
Jul 21 '05 #1
2 1672
Hi Rajgopal

You need to do it programatically, Write an HTTP Module for that which
checks for the type and session out time. whenever any user request any
page, this component will check for the user type then determine the session
out time and logged-in time and explicitly abandon the session

Hope it helps you

regards
Nishith Pathak

"Rajagopal" wrote:
Hi,

I have a application which i would require to use for two different set of
users. For one set of users i need to set the session timeout as 60 minutes,
which i can configure using web.config. But for the other set of users i
need to set the session timeout as infinite, which means the session should
not get expired.

So please some one help me out how to set this property in ASP.NET.

I have developed the application using ASP.NET with C#.

Thanks,
S.Rajagopal

Jul 21 '05 #2
Hi Nishith Pathak,

Thanks for your valuable response. But my problem is, i have the session
timeout value as 30 minutes in web.config. I have two login pages, say login
1 and 2. If the user loggs in using "login1" page then the session timeout
should be 30 minutes which can be fetch from web.config. But if the user
loggs in using "login2" page then the session timeout should be 90 minutes.

For doing this, i have placed "Session.Timeout = 90" in the "login2" page
load event. But this does not seems to be working fine.

Any help would be greately appreciated in this regard.

Thanks,
Rajagopal.S

"Nishith Pathak" wrote:
Hi Rajgopal

You need to do it programatically, Write an HTTP Module for that which
checks for the type and session out time. whenever any user request any
page, this component will check for the user type then determine the session
out time and logged-in time and explicitly abandon the session

Hope it helps you

regards
Nishith Pathak

"Rajagopal" wrote:
Hi,

I have a application which i would require to use for two different set of
users. For one set of users i need to set the session timeout as 60 minutes,
which i can configure using web.config. But for the other set of users i
need to set the session timeout as infinite, which means the session should
not get expired.

So please some one help me out how to set this property in ASP.NET.

I have developed the application using ASP.NET with C#.

Thanks,
S.Rajagopal

Jul 21 '05 #3

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

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
30
by: Robert Tweed | last post by:
Does anyone know a good resource discussing the issues involved in session theft? I've read a couple, but none that really address the problem apart from acknowledging that it is a problem; you...
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...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
7
by: Mr Newbie | last post by:
I have written a Custom Control Menu. Its fairly simple but it works well enough. In order to simplify things I decided to store the Menu1 custom control in Session. In the page load event below,...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...

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.