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 December 2nd, 2004, 09:02 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logout Problem ASP

Hi

I am having problems logging off the user (in terms of the database) when the user navigates to a new URL.

I cannot log him off onunload event or 'Onclose' event.

The problem is to update the status of the user in the database to inactive on two conditions specifically:-

1. Session Timeout.
2. When the user navigates to a new URL.

The session timeout is working and the user gets redirected to the login page after timeout as i had put a check for it.

The problem is updating the database where the users status is still active.

I have managed to logoff the user when he closes the application window.

But the above two stated problems still baffle me.

I am using an access database.

The problem is to connect to the database on session timeout or new site navigation.
Thanks for viewing this post,
Chaitanya

 
Old December 2nd, 2004, 08:47 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

   Its the problem with caching. You do insert this statement
response.expires=0 at the top of the page.

When you session.abandon it expires the session.


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






Similar Threads
Thread Thread Starter Forum Replies Last Post
LogOut in ASP.NET Manoj Bisht ASP.NET 2.0 Professional 3 March 4th, 2008 09:25 AM
Logout problem dayaananthanm ASP.NET 2.0 Professional 2 December 7th, 2006 04:57 AM
ASP Logout Script webXtreme Access ASP 0 November 7th, 2006 02:40 PM
Logout Problem birari Classic ASP Basics 7 September 1st, 2006 12:22 AM





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