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 September 23rd, 2004, 07:05 AM
Authorized User
 
Join Date: Mar 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default Deleting Sessions

I need to run the function "session.abandon" when the user leaves the website. For example I have the session to time out in 20 minutes. Instead of waiting 20 minutes before his session deletes, I want to delete it the second that he leaves or exits the browsing window of my site. I, along with others, figured out how to do it with a popup window on exit, but i dont like that at all. There has to be a diffrent way, but i am just not sure.... If anyone could help that would be great!

 
Old September 23rd, 2004, 07:55 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


Read this page having the similar post.

http://p2p.wrox.com/topic.asp?TOPIC_ID=19463

Hope this helps.


-----------
Rajani

 
Old September 23rd, 2004, 11:18 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
Default

Rajani

The post you are reading now spawned from the post you suggested. gmoney060 is looking for a solution that does not involve pop up windows. XP SP2 apparently stops ALL pop up's. These properties can be tweaked, however gmoney060 does not want to do any tweaking. A great deal of sites out there use pop up windows including things like internet banking. Blocking ALL pop up windows dramaticly reduces resources available on the www.

Submitting a hidden form onUnload (beware, this gets called on refresh also) to the page calling a session.abandon() has also been suggested. This works for me, in fact I use both methods in different situations. I am most interested to hear the top techo's take on this one.


Wind is your friend
Matt
 
Old September 27th, 2004, 10:11 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
Default

gmoney060

In regard to our previous discussions on the SP2 pop up issue:
XP service pack 2 does not stop user triggered new window functions.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
sessions p2ptolu Classic ASP Components 3 March 17th, 2005 06:31 AM
Sessions 2540EA BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 20th, 2005 05:42 AM
Mixing classic ASP sessions with ASP.NET sessions scorpion_king General .NET 2 August 4th, 2004 08:20 AM
Sessions aeejai Beginning PHP 3 April 22nd, 2004 01:51 PM
Help sessions ittorget Pro VB 6 2 April 20th, 2004 02:18 AM





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