Re: server.transfer and forms authentication

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Instead of using:
FormsAuthentication.RedirectFromLoginPage
(which i believe is a Response.Redirect)

Rather use
FormsAuthentication.SetAuthCookie

you can then call Server.Transfer yourself

HTH

"java.equals(cool)" <javaequalscool@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:827D6B84-EB86-43F2-9A49-F13CD6F53B8E@xxxxxxxxxxxxxxxx
> hi there,
>
> my app needs to retrieve a value from a previously viewed page. The user
> moves between pages on the site with the server.transfer method doing the
> legwork. This works fine.
>
> The problem comes from getting values from a particular page; which does
> not
> use the server.transfer command. This page is for logging in, and is the
> page
> a user is redirected to when accessing the site. They are redirected there
> by
> the web.config file which uses forms authentication. As the logon page
> uses
> the line
>
> FormsAuthentication.RedirectFromLoginPage(string userName, bool
> createPersistentCookie);
>
> to redirect the user; the parameters of the logon screen are not saved
> from
> the class meaning i cant access them. What would be a sensible way to get
> round this ? I need it passed securely as i want the password; so posting
> it
> in the url is out.
>
> I thought to authenticate the user then direct them to a specific welcome
> page. How/Can this be done whilst satisfying the web.config file for
> authenticating a user.
>
> Any help greatly appreciated,
>
> H


.



Relevant Pages

  • Re: Forms Based Authentication and the OpenWave Browsers
    ... Try taking this redirect out of the try...catch; ... > Authentication in cookie enabled WAP browsers. ... > Samsung Browser, Forms Authentication and RedirectFromLoginPage - This is ... > Open Wave Browser and Cookies - While regression testing my new change, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: redirect http to https for virtual directories
    ... at the URL and if it comes over "80" redirect to ... Enable anonymous access and unchecked the Require SSL ... If proper authentication is provided, ... custom error not handling http to https redirects ...
    (microsoft.public.inetserver.iis)
  • Re: MS05-004: Path vunerability still present in ASP.NET 2.0
    ... -> redirect to login.aspx ... Dominick Baier - DevelopMentor ... indeed exist on this ASP.NET 2.0 web site hosted on a W2003 SP2 IIS ... ASP.NET picks-up the authentication / authorization and re-directs. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Default.aspx - newbie Q`
    ... check and redirect to the ReturnURL or Selected.aspx depending on the case. ... > and replace it with something that takes then straight to the login page. ... >> Curt Christianson ... >>> authentication ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP 2.0 Membership API
    ... After successful authentication, you want to redirect back to the original application, but the returnURL parameter contains only /App1 as the URL. ... The solution to that problem is adding a local login page to the application that does a manual redirect to the central authentication application. ... if not you have to use cookieless auth ...
    (microsoft.public.dotnet.framework.aspnet.security)