Folks,

I'm clearly missing something, which is not surprising, because I'm new to ASP.NET.

I'm making a session counter, which is incremented in the Session_Start() event and decremented in Session_End(). (This is just an exercise. I found it here.)

I have created a Global.asax file and added the event handlers. So far so good.
Then I wanted to access the Application object in a .cshtml file, but the Application object is not available. It's underlined with a red squiggly line.

What could I be missing?

Any suggestion, insight or reference is really appreciated!

Cheers,
- Nick