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 March 16th, 2007, 10:29 AM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default session_onend does not trigger

Hi

I hope you'll pardon my english ... french is my first language.

I'm experiencing some problems with session_onend on a particular server recently installed. For some reason the call to the session_onend sub seems never to occur on the new web server. I've downloaded a little script I've found on http://www.asp101.com/articles/john/...essionsend.zip written by John Peterson and it worked fine one 2 or 3 servers I've tested it onto (all servers are configured identically as far as I know).

I've added a line in the session.asp page as :

<p><a href="sessionend.asp">Click here to end session.</a></p>

And created the page sessionend.asp :

<%@ Language="VBScript" EnableSessionState="True" %>
<%

session.abandon()
response.redirect("session.asp")

%>

So on a normal server I get something like this in session.log :

Session: 358709378 started at 2007-03-16 10:40:33
Session: 358709378 ended at 2007-03-16 10:40:34
Session: 358709379 started at 2007-03-16 10:40:34
Session: 358709379 ended at 2007-03-16 10:42:30

But the new server only triggers session_onstart and my log looks like this :

Session: 353253007 started at 2007-03-16 10:33:44
Session: 353253008 started at 2007-03-16 10:33:45
Session: 353253009 started at 2007-03-16 10:33:46

Any clue ?
 
Old March 16th, 2007, 02:02 PM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Seems like there was a difference ... Windows server 2003 R2 SP2 was installed on the new server. It worked fine after uninstalling it. I tried to install SP2 on an other server and session_onend stopped working on it.

thx all.






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.