session time out

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
Back
Top