Validate Session with Http Module
<p>I need to validate the Session with the HTTP Module. I have some aspx pages and in that pages am just validating, whether the sessions are null or not, like</p>

<pre><code> if (Session["LoggedInUser"] != null)
 {
     user = (User)Session["LoggedInUser"];
 }
 else
 {
     FormsAuthentication.SignOut();
     FormsAuthentication.RedirectToLoginPage();
 }
</code></pre>

<p>is it possible to validate the sessions(from any aspx page) with the help of HTTP Modules?</p>

<p>I got some idea here, <a href="http://stackoverflow.com/questions/276355/can-i-access-session-state-from-an-httpmodule">Can I access session state from an HTTPModule?</a>, but I dunno where I have to add this class file and how I've refer this class file, so that I can access this from any aspx page, I really don't have any idea about this, can anyone help me out here, thanks in advance</p>
