![]() |
|
|
|||||||
![]() |
ASP Net - Application Events AFTER a response.redirect |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I have some global prosessing done on both the PreRequestHandlerExecute and
PostRequestHandlerExecute events in my Global.asax. These event handlers do some session management things and some processing to determine if cookies are enabled on the client's browser. To handle the cookies, the PreRequestHandlerExcecute event creates a cookie (if it doesn't exist) and then redirects to another page that determines if the cookie is available. If it isn't, then I know the client doesn't support cookies. However, when redirecting, the PostRequestHandler event is never called. The reason I am using these events is because 1) I want every page (request) to be handled by this and 2) I need access to the session object. The following article implies that my PostRequestHandler won't be called when I do a response.redirect: http://support.microsoft.com/default...b;en-us;312607 I have thought about using an HttpHandler instead, which seems a little more elegant, but it this going to have the same issue of not having the PostRequest handler called? Any other suggestions for handling this. Primarily the issue is with determining if cookies are enabled, I can re-work the other stuff that goes on. The cookie checking needs to be invisible to the user. Unfortunately, I cannot put a meta-refresh in, because without some of the processing getting done, pages that are dependent on the session processing that goes on will not work, so I need to kill them BEFORE the page is loaded. Thanks Steve Steve Lutz |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| standalone .net application | jass | Software | 1 | 04-02-2009 03:11 AM |
| How to open Web Application pages (ASPX) in Windows application. | arameshmca | Software | 1 | 02-07-2008 03:18 AM |
| Server Error in '/Forms' Application. | AxleWack | General Help Related Topics | 0 | 10-11-2007 01:47 PM |
| How to revert file to unknown application | perezla | General Help Related Topics | 1 | 09-12-2007 03:15 AM |
| deploy web application behind a server (no NAT) | xavoux | Software | 0 | 06-22-2006 01:11 PM |