Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are Session variables available in Session_OnEnd?

Status
Not open for further replies.

Mugs321

Programmer
Jan 31, 2007
49
CA
Hey all,
This may seem like a silly question but here's what I'm tryin to do:

I have an App variable to maintain a count of users currently taking an exam/test. Now, there may be some unforseen instances in which a user may quit the exam and the counter won't decrement (closing the window etc).

I have a Session variable to keep track of when an exam/test is being run.

I was thinking of adding a final check by placing the following code in Session_OnEnd:

Code:
If Session("certificationViewed") = true Then
   Application.Lock()
   Application("CurrentExams")=Cint(Application("CurrentExams"))-1
   Application.Unlock()
End If

Is it even possible to access a session variable like this?

Thanks,
Dave
 
Is it even possible to access a session variable like this?

Yup.



-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top