Solved

IIS and Session_OnEnd inside of global.asa

Posted on 2001-07-11
7
247 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
  • 3
  • 2
7 Comments
 
LVL 17

Expert Comment

by:inthedark
Comment Utility

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
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

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

Expert Comment

by:Moondancer
Comment Utility
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
Comment Utility
No additional response, inconclusive.  300 points refunded item moved to our PAQ and closed.
Moondancer - EE Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now