Wrox Programmer Forums
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 8th, 2003, 04:13 PM
Registered User
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default session_onend and databases

I was using a DSN to access my access database, wrote all the code and it all worked perfectly - I've since changed it to a DSNless connection as it's faster - the whole site is fine with this, except for the session_onend in global.asa

function Session_OnEnd() {
var dbConnEnd = Server.CreateObject("ADODB.Connection");
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\path\to\database.mdb;Jet OLEDB:Database Password=passwd";
sql = "update tblUser set loggedin=no,where id = " + Session("id") + ";";
dbConnEnd = null;

This is to make sure that users that don't use the logout get loggedout when their session ends, only it's not working at all...is there some kinda rule about using database connections in session_onend? Or am I missing something important? I have no idea why it's not working...and it's very frustrating!

Old February 17th, 2005, 01:03 AM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


I am having the same problems.

I know this was posted 2yrs ago, but could someone please shed some light on the subject

Old May 30th, 2007, 04:47 AM
Friend of Wrox
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

hi Blood

Cheers :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session_OnEnd Question.... seananderson Classic ASP Basics 3 July 19th, 2007 03:54 PM
help with session_onend chinedu Classic ASP Basics 8 October 26th, 2004 10:13 PM
Session_OnEnd v. SQL bluewater68 Classic ASP Professional 0 August 18th, 2003 04:25 AM

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