Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / October 2004

Tip: Looking for answers? Try searching our database.

session time out

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rajagopal - 26 Oct 2004 22:35 GMT
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
Nishith Pathak - 27 Oct 2004 10:23 GMT
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,
>
[quoted text clipped - 10 lines]
> Thanks,
> S.Rajagopal
Rajagopal - 27 Oct 2004 20:51 GMT
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

> Hi Rajgopal
>
[quoted text clipped - 22 lines]
> > Thanks,
> > S.Rajagopal

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.