Re: Url Redirection



Thanks for your reply Nick,

For this case, since the server-side has forms authentication to protect
the page. How about this;

1 for your add-in shell code, you can always first establish a initial http
get request to check whether you're redirected or not(or can directly
access the target page).

2. if you're not login yet and redirected, you should programmtically login
first.

3. After make sure you're login, you can just send http post with the
correct querystring(need to add the cookie data also).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Nick" <a@xxxxx>
Subject: Re: Url Redirection
Date: Wed, 6 Aug 2008 14:27:07 +0100


Hi Steven,

Indeed, it's part of an unmanaged addin for another application and
invoking via the shell is the most efficient way of achieving the desired
result as the browser will need to be opened if it isn't already.

I don't seem to have any control over this as it's all handled
internally and controlled via the web.config file afaik. So here is my
current thoughts...

1. The URL is created and escaped correctly.
2. The URL works on the site if logged in already
3. If not logged in ASP.NET screws with the URL and makes it invalid
then kicks you back to the login page.

So using my advanced powers of deduction. asp.net is screwing with my
query string and making it unusable? Therefore I can't see how this can
be
worked around unless I can modify the query string during this process but
unfortunately none of my code is hit in page load for me to be able to.
Or
am I able to perform the bounce manually somehow?

Thanks for your time again!

Nick.

"St

.



Relevant Pages

  • Re: Supress Page_Load in ascx?
    ... (as a side note login handling is already part of the ASP.NET ... ascx's at runtime (for example, a menu control, a list result control, ... all the ascx's are called even though my "login redirection handler" ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Blank screen when certain users log into server
    ... the admin login or one other ... Failed to perform redirection of folder Desktop. ... my NETLOGON share on the Domain Controller) ...
    (microsoft.public.windows.terminal_services)
  • Redirect Favorites Folder via GPO
    ... You could set the key at login via a script. ... Folder redirection in place for -My ... >working can add favorites, when logging off and on again ...
    (microsoft.public.win2000.security)
  • Millions of HTTP 302 Code Entries
    ... I am getting millions of 302 status code (redirection) entries in my IIS log ... This occurs on custom built login pages: When employees try to log into ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Millions of HTTP 302 Code Entries
    ... I am getting millions of 302 status code (redirection) entries in my IIS log ... This occurs on custom built login pages: When employees try to log into ...
    (microsoft.public.dotnet.languages.csharp)