473,326 Members | 2,173 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,326 software developers and data experts.

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


Nov 19 '05 #1
0 1839

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

Similar topics

9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
9
by: ben | last post by:
I have a web application whic connects to the database and populates a datagrid based on 2 fields the user enters on the web form. I have a try catch block to make sure that in case the user enters...
2
by: nerd | last post by:
Hi, I've easily implemented an HttpModule and use AcquireRequestState to initialize an object and ReleaseRequestState store to session. Unfortunately if a Response.Redirect takes place. The...
5
by: Rob | last post by:
ok, so im ready to absolutely throw my self right into the monitor, can anyone explain why certain events fire before others in asp.net? in my case, after some processing a final download aspx page...
2
by: WJ | last post by:
This post is a follow up from the original post dated Oct 16, 2004 "I have this problem, pls help!" created by Paul FI. These bugs are rather serious and we would like to know how to get around. ...
4
by: phancey | last post by:
hi, I'm having an absolute nightmare with this! I've seen many posts on the subject but still can't quite figure it out. I'm using csharp and Framework 1.1.4322.537 on Windows2000...
2
by: HLady | last post by:
I have a sequence of clicks in my apps that are always causing the session to start again. This is definitely not being caused by a timeout, cause it always happens no matter how long since the...
6
by: Steve Hershoff | last post by:
Hi everyone, I've got a strange one here. There are two datagrids on my page, one nested within the other. I'll refer to them as the topmost and secondary datagrids. In the topmost...
1
by: mpaine | last post by:
I have read http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx and my interpretation is that custom events should be fired between Page_Load and Page_LoadComplete. When I run the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.