Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Application Events AFTER a response.redirect

 
Thread Tools Search this Thread
Old 01-06-2005, 04:21 AM   #1
Default Application Events AFTER a response.redirect


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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46