This topic is locked

Global.asa

3/21/2009 6:08:00 PM
ASPRunnerPro General questions
R
Roger author

This is pointed more to Admins and Support people, but it may be of interest to others.
I use quite a few session variables and set and populate them in the according event areas. All it well.
Today, I decided (now that I know it works ) to place the session variables into the On Session Start section of my project's Global.asa file. Done this lots in the past.
Anyway, it seems that this doesn't work with ASPR.
Not a huge deal, as I've uncommented them from my events.
But I am curious. I know they get initialized in Global.asa, but don't seem to get used.
In other words (with debugging enabled and writing the vars out), they are empty.
Thanks.

Admin 3/21/2009

I'm not sure if this issue is ASPRunnerPro related. ASPRunnerPro doesn't produce any code that would prevent session variables from working.
Personally I found global.asa quite unreliable.
Here is the simple test.

global.asa

------------

Sub Session_OnStart

Session("started") = "Yes"

End Sub


test.asp

------------

<%

response.write "Started: " & Session("started")

%>


This doesn't work for me. Session variable is empty:

http://demo.asprunner.net/kornilov_xlineso...m/test/test.asp
So my recommendation is to make sure that this sample works for you.