Is it possible to create a variable that is global for each session in ASP.NET? Usually I do this with Session:
Session("my_variable") = 10
But this necessitates casting it every time I want to use it like so:
Dim my_variable as String = CInt(Session("my_variable"))
I see that if I create a Module I can create variables which are public to an entire project for each session...I also see that Global.asax allows for much of the same functionality offered by modules. I'd prefer to avoid writing a module...is there a way to do this in Global.asax or some other best practice method? Or is Session variables the best way?