Session variables does not increment
-
i declare a variable to track the number of visitors to my web app in .asax file like app_start event application("userscount")=0 session_start event application("userscount")+=1 session_end event application("userscount")-=1 on testing the webapp by opening several sessions of a page to test the count, the Session_Start event works fine, but on closing a session, teh session_end event does not decrement pls help t.aransiola
-
i declare a variable to track the number of visitors to my web app in .asax file like app_start event application("userscount")=0 session_start event application("userscount")+=1 session_end event application("userscount")-=1 on testing the webapp by opening several sessions of a page to test the count, the Session_Start event works fine, but on closing a session, teh session_end event does not decrement pls help t.aransiola
HI Aransiola, If you use the Session variable rather then application as i saw in your example above then this will work fine. Use like this: Session("userscount") in place of application("userscount") and if you want to count then application variable is fine but you have to use application_start event .
Vicky