Session object

  • Thread starter Ivan A. Gavrilyuk
  • Start date
I

Ivan A. Gavrilyuk

Hi

I'm trying to implement my own security framework in asp.net, so I need to
identify user in Application_AuthenticateRequest in Global.aspx. But Session
object always null, why?

Thanx.
 
C

Cowboy \(Gregory A. Beamer\) [MVP]

Application events run on a different level than session events, as they are
fired from a different point in the process. I know this is true for the
Application_Start event. I would assume it happens in other app events, as
well. Session vars come into play after the session cookie is returned, so
the event may be firing before the request is completely parsed. Not 100%
sure, of course, on Application_AuthenticateRequest.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top