[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

IIS and Session_OnEnd inside of global.asa

Posted on 2001-07-11
7
Medium Priority
?
258 Views
Last Modified: 2008-02-01
We have created a WebClass IIS application in vb and are running into a strange problem on one of our servers.  We have a global.asa file that has logic to log a person out when the session ends..

Sub Session_OnEnd
   dim strSessionId
   strSessionId = Session.Contents.Item("strSessionId")
     set oOBJ  = Server.CreateObject("MyCOMP.MyObj")
     oOBJ.SessionName = strSessionId
     oOBJ.Logoff
     set oOBJ = nothing
End Sub

The problem that we are seeing is that this event seems to be getting fired immediately after then logon.  It is my understanding that this should not get fired until IIS times out.  Currently we have this set to 20 minutes.  Why is it getting called immediately.  This only appears to happen on some of our servers.  We have other that work fine.  They are all Win2000 server boxes with SP1 installed.  We have tried to compare IIS settings between the good and bad boxes and have not been able to see a difference.  

Anyone ever seen this?  IS there a better way to do the logout inside of the webclass?


0
Comment
Question by:blitz051697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 17

Expert Comment

by:inthedark
ID: 6273571

In Web-Site properties "Home Directory" "Config" App Options" Enable Session State must be set.

Have you got "keep alives" set to true.

And in Web-Site properties properties "Web_Site"

Keep HTTP Alives Set.
0
 
LVL 17

Expert Comment

by:inthedark
ID: 6273588
Further you can save yourself some code and make the session object a parameter in your Logoff method.

e.g.

oOBJ.Logoff Session
0
 
LVL 17

Expert Comment

by:inthedark
ID: 6273612
The your logoff has access to all the Session fields.  You may not appreciate why you need this at first but you will.

Example:

You could keep a note of the type of visitors e.g. Internal Employees or external hits.

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:blitz051697
ID: 6274665
We have check both IIS setting that you have referred to.  They seem to be identical.  
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6975850
One of your questions is current, but the others are not and need your attention.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if they are still open in 14 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20149160.html
http://www.experts-exchange.com/questions/Q.20190075.html
http://www.experts-exchange.com/questions/Q.20256401.html
http://www.experts-exchange.com/questions/Q.20290655.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchange.com/commspt/Q.20277028.html
 
Moderators will finalize this question if in @14 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7079892
No additional response, inconclusive.  300 points refunded item moved to our PAQ and closed.
Moondancer - EE Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question