Solved

IIS and Session_OnEnd inside of global.asa

Posted on 2001-07-11
7
248 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

863 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

19 Experts available now in Live!

Get 1:1 Help Now