Hi,
first of: IRequiresSessio nState is to be used with HttpHandlers (Classes
implementing IHttpHandler interface) to tell that they need Session to be
usable (read/write) and IReadOnlySessio nState if HttpHandler needs only
read-only access to the Session. This different fconcept from HttpModules.
So from HttpModule's standpoint, Session is available after
AcquireRequestS tate event of the HttpApplication is raised. before that you
can't access the Session. It means that in your module you can wire an event
handler in Init method for AcquireRequestS tate event or some later event to
get access to the Session collection.
Check following article:
http://www.eggheadcafe.com/articles/20030211.asp
It provides you the list and sequence of HttpApplication 's events.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Aurel" <We************ **@hotmail.com> wrote in message
news:uU******** *****@TK2MSFTNG P09.phx.gbl...
Hi,
I have create a httpmodule but I have some problems. I can't access to the
session. Even if I create my class like this
public class myModule: IHttpModule, IRequiresSessio nState
{}
Someone got an idea?
Another question, the session_start in Global.asax fire before all
httpmodules or after all ?!?
Thanks.
Aurel