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 July 11th, 2012, 04:18 AM
Registered User
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stay signed in

Need help to implement concept of 'Stay signed in' for users who want to avoid facing session timeout
Old July 12th, 2012, 06:50 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

There are a couple of useful posts in either the 'beginning' or this 'professional' area of this forum. If you cant find then narrow your search down ny looking for contributions fro 'Imar' Im sure he was involved in what i remember to be a lengthy very wise bit of information on this.

In short and IME state management is an issue in the classic ASP world because Session_OnEnd doesn't fire when you think is would and most people think its supposed to. If you find this post im talking about it explains why in detail from memory. My advice is that this topic is in the 'to hard basket' in our world (this issue has been solve n the .NET world of course) Try not to use session variables in your application. Carry values from page to page using the request.form or request.queryString - There should never be a need to carry values around using session("someName")! If you dont get this concept and think you cant carry values from page to page becasue you dont have a form on every page then put a form on every page. A form can have all hidden form variables dont forget.......Anyhow I wont bang on, im sure you will find the post im talking about. I even remember some very clever input that suggested a solution that works 'most of the time' but it was an awful lot of effort from memory....

Of course you can increase the timeout. Place a global.asa file at your applications root and include something like:

sub session_onStart
Session.Timeout = 40
Server.ScriptTimeout = 50
End Sub
Wind is your friend

Last edited by mat41; July 12th, 2012 at 06:53 PM.. Reason: addional info

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash - fade in then stay Teessider_2000 Flash (all versions) 2 August 16th, 2007 02:57 PM
javascript popup does not stay on top billbillbill Classic ASP Basics 0 July 23rd, 2007 12:15 PM
stay on the new record - don't roll to next Sjackson Access 2 May 25th, 2005 09:25 AM
how to make a WinApp stay in statusbar? csc820203 C# 1 June 22nd, 2004 10:21 AM
Signed Applet example? EhobaX Java GUI 1 January 6th, 2004 06:00 AM

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