Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2004, 07:38 PM
Authorized User
 
Join Date: Oct 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default session.timeout local?

Is it possible to assign a session.timeout value to an individual page or folder within my application and have a different timeout value in other parts of the application.

Can all this be done without logging the user out at any point or ending his/her session?

Any ideas?

 
Old January 28th, 2004, 04:38 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

If you want you can change the timeout on each page. However, the new setting will then apply to the entire session.

It is possible to apply a different timeout to a specific folder. To do so, you'll need to turn the folder into an IIS application. However, this new application will NOT share session state with the original application, so you have two different sessions objects.

What exactly are you trying to accomplish? Why do you need a different timeout?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 28th, 2004, 05:55 PM
Authorized User
 
Join Date: Oct 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well, there are certain pages/folders that should not have a long timeout because of the load on the server, and there are others that would be better suited to my needs if they had a longer timeout. So, essentially, I want to have a timeout of, say 40 minutes, on one page and a timeout of 20 minutes on another page. Is there any way to do this?

 
Old January 28th, 2004, 06:05 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't really see the point. As soon as your user hits a page with a session with a timeout of 40 minutes, it will take 40 minutes for the session to time-out. If they also hit pages with a timeout of 20 minutes (in a different Application / Virtual folder) you'll end up with a second session that will timeout after 20 minutes.

Sessions are not related to pages; session are related to users. For each user, a session object will be created and maintained at the server.

If your 40 minutes part is not always visited, you can choose to add the additional application like a explained. User who request pages in that section will get two sessions ont he server, but that may be worth the trouble....

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout aspless Classic ASP Basics 1 February 21st, 2008 04:46 PM
Session timeout... rupen Classic ASP Professional 1 January 3rd, 2007 09:35 AM
session timeout bikki_suresh ASP.NET 1.0 and 1.1 Professional 1 October 11th, 2006 07:33 AM
session timeout bikki_suresh ASP.NET 1.0 and 1.1 Basics 0 October 10th, 2006 12:16 AM
Session Timeout lcsgeek Classic ASP Basics 1 October 6th, 2003 01:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.