FrontController problem

L

Luis Farzati

Hello,

I'm working on a frontcontroller implementation. I want to listen a
series of requests like the following:

GET http://application.com/messages/listMessages?folder=inbox&offset=10

POST http://application.com/messages/sendMessage

So I've written a FrontControllerModule class (which I've added to
web.config httpModules). As the expected requests doesn't have a file
extension, for this to work, I've also added a wildcard application map
(Windows 2003). I receive a request, recognize it as a command object
and execute it.

Now I'm facing this problem: some commands needs to read/write
variables in user Session, but there is no Session object!

I changed execution time from BeginRequest to AcquireSessionState , but
I still doesn't have a Session. Searching the web I've found an
interface, IRequiresSessionState, but that works only for HttpHandlers.

Any idea on how to resolve this problem?

Thank you very much.
 
L

Luis Farzati

I've tried both HttpApplication.Request and
HttpApplication.Context.Request.

Doesn't work.
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top