Are you sure the folder that holds the global.asa file is an application? Otherwise, sessions won't work as expected.
And are you sure you don't have client software blocking your cookies? Since ASP Sessions depends on cookies, you need to be able to accept cookies from your server.
In addition to this: please do yourself a favor and review your code in the global.asa. Opening a connection in Session_Start and storing it in Session state is about the worst thing you can do to a web site. It'll run fine with just a few number of users, but you'll bring your entire site down to a grinding halt whenever more users hit your site. This practice is on the opposite end of "best practices for web development".
Also, there is no need to lock the application to set a session variable....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Erics Trip by
Sonic Youth (Track 5 from the album:
Daydream Nation)
What's This?