Re: server.transfer and forms authentication
- From: "Grant Merwitz" <grant@xxxxxxxxxxxxx>
- Date: Mon, 15 Aug 2005 11:14:50 +0100
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
.
- Follow-Ups:
- Re: server.transfer and forms authentication
- From: Joey
- Re: server.transfer and forms authentication
- References:
- server.transfer and forms authentication
- From: java.equals(cool)
- server.transfer and forms authentication
- Prev by Date: Re: Find and replace problem
- Next by Date: Re: Current virtual directory from Application_Start ?
- Previous by thread: server.transfer and forms authentication
- Next by thread: Re: server.transfer and forms authentication
- Index(es):
Relevant Pages
|