473,379 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

FrontController problem

Hello,

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

GET http://application.com/messages/list...nbox&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.

Jan 14 '06 #1
2 1282
Are you trying to access the session via the context object?

--
Regards

John Timney
Microsoft MVP

"Luis Farzati" <lf******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

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

GET http://application.com/messages/list...nbox&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.

Jan 14 '06 #2
I've tried both HttpApplication.Request and
HttpApplication.Context.Request.

Doesn't work.

Jan 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: bigoxygen | last post by:
Hi. I'm using a 3 tier FrontController Design for my web application right now. The problem is that I'm finding to have to duplicate a lot of code for similar functions; for example, listing...
0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
0
by: Matt | last post by:
I am about the start a project and would like to implement FrontController model. I have download the froncotroller Demo from web and installed. It did create virtual directory and when i call the...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.