473,414 Members | 1,628 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,414 software developers and data experts.

Response.Redirect does NOT cause a roundtrip to the client, why?

Hi,

BACKGROUND:
I have a VB.NET DLL that implements IHttpHandler.
I also have a guestlogin.aspx page which is call by FormsAuthentication.
For my app .ASP files are mapped to ASP.NET (for app legacy reasons).

The guestlogin.aspx after:
FormsAuthentication.SetAuthCookie(strUserID, false)

does a:
Response.Redirect(FormsAuthentication.RedirectUrl. ....

For some reason the redirect is happening internally instead of doing a
round
trip to the client. Hence cookies that I set get lost which screws
everything up.

The web.config file has a <httphandler> which specifies verb="*",
path="*.asp".
However these files don't actually exist so its acting more like a ISAPI
filter in this
respect.

HOWEVER... it only goes wrong when I am running against the debug or release
compiled DLL if I run it in debug through the IDE it works fine.

Regards,
Peter Row
Nov 18 '05 #1
0 867

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

Similar topics

0
by: Peter Row | last post by:
Hi, BACKGROUND: I have a VB.NET DLL that implements IHttpHandler. I also have a guestlogin.aspx page which is call by FormsAuthentication. For my app .ASP files are mapped to ASP.NET (for app...
3
by: ASP Yaboh | last post by:
Does Response.Redirect() make a roundtrip to the client to complete the redirect? Is there a method which keeps the redirection server-side (e.g. in JPS .Forward() moves the action to a new...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.