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 August 25th, 2004, 02:27 PM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default New session created?

When a user selects an option from a list on my home page, a new window is opened to enable them to login, and from there use whatever facilities are available to them. At this point, the user has two browser windows open.

Does this mean that he actually has two sessions running, or is it just one session?

Thank you
Pat

-------------------
System 3 2000 Limited
www.system3-2000.co.uk
__________________
-------------------
System 3 2000 Limited
www.system3-2000.co.uk (but very out-of-date!)
 
Old August 25th, 2004, 06:26 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

Just one session

Wind is your friend
Matt
 
Old August 26th, 2004, 01:15 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Matt.

-------------------
System 3 2000 Limited
www.system3-2000.co.uk
 
Old August 26th, 2004, 01:41 AM
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

No worries. When a user is logged in and they decide to log out, I always call Session.Abandon. This will free up any resources they were using and absolutly logs then out.

<%
Session.Abandon()
response.redirect("../index.asp?session=terminated")
%>

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
New session gets created for every request. sasikanth Classic ASP Professional 0 September 26th, 2005 10:30 AM
Self Created Function rajuru Beginning PHP 0 July 8th, 2005 06:33 AM
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM





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