Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 29th, 2008, 05:47 PM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default Session Timeout

Hope you guys can assist..

I have a couple of sessions which i am trying to manipulate which i currently use for passing vars.

I don't at pres use a global.asa file for setting variables as the sessions i use may vary on timeouts and i would prefer a more specific control over my sessions.(lack of any real knowledge of global.asa does not help).

My issue is on setting the session timeout threshold which should be a simple process, but my draconian testing seems to be providing little answers.

After reading tutorials on setting session timeouts the code is fairly simple.

Code:
<%
Session.Timeout=35 ' 35 Minutes
%>
How ever when added to my page with
Code:
<%
Session.Timeout=1

Session("timeouttest") = "100"

If Session("timeouttest") = "" then
response.write "Session has timed Out"
End If
%>
I seem to still be incurring the standard 20 min timeout.

I can set my IIS with a higher timeout threshold but no good for hosted servers so no go there and again i would prefer to control my timeouts more acurately.

The other option would be to use a temp cookie to pass the vars which may be the solution but i would still like to have a fuller understanding of session control before using this solution.

If anyone has a better understanding of session manipulation that would be a great help.

Cheers


Aspless





 
Old February 21st, 2008, 04:46 PM
Authorized User
 
Join Date: Jan 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://classicasp.aspfaq.com/general...les-stick.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout innochig ASP.NET 2.0 Professional 1 May 23rd, 2007 01:03 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.