Re: Setting credentials
From: tshad (tscheiderich_at_ftsolutions.com)
Date: 01/14/05
- Next message: Suhaib Khan: "Re: Doesnot allow to debug or asks for username and password in visual studio.net academic 2003"
- Previous message: Curt_C [MVP]: "Re: Setting credentials"
- In reply to: Curt_C [MVP]: "Re: Setting credentials"
- Next in thread: Curt_C [MVP]: "Re: Setting credentials"
- Reply: Curt_C [MVP]: "Re: Setting credentials"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 Jan 2005 14:13:50 -0800
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%232JPdRo%23EHA.3120@TK2MSFTNGP12.phx.gbl...
> not sure what you mean..
> If I understand you want to bypass the login? Uh...... doesn't that defeat
> the purpose of using auth?
> You can add pages in the web.config that ignore the auth mode.. would that
> suffice?
No. What I want to do is allow the user to log on from a link. He will go
into the logon page.
The next page he goes to will require him to logon again, since he didn't go
through the normal FormsAuthentication mechanism that sets the cookie. This
would be irritating. I want to be able to set the cookie manually, if this
is the case.
Tom
>
> --
> Curt Christianson
> Site & Scripts: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "tshad" <tscheiderich@ftsolutions.com> wrote in message
> news:uMYJEOo%23EHA.2568@TK2MSFTNGP10.phx.gbl...
>>I have a logon page that my pages go to log a person on using
>>formsAuthentication.
>>
>> Is there a way to jump directly to the logon page and have it set the
>> formsAuthentication cookie so that the next page (that would normally
>> require logging on - if not already done) would not jump to the logon
>> page.
>>
>> For example, I have a page with my submit function like so:
>> **********************************************************
>> sub submit_click( sender as Object, e as EventArgs )
>> if Not IsValid then
>> exit sub
>> end if
>> if request("ReturnURL") = Nothing then
>> server.transfer("resumeSubmit.aspx")
>> else
>> FormsAuthentication.RedirectFromLoginPage(txtEmail.text,false)
>> end if
>> end Sub
>> ***********************************************************
>>
>> I assume the FormsAuthentication.RedirectFromLoginPage normally sets the
>> cookie and jumps to the page that called it. Can I put a call just
>> before the server.transfer that does the same thing?
>>
>> Thanks,
>>
>> Tom.
>>
>
>
- Next message: Suhaib Khan: "Re: Doesnot allow to debug or asks for username and password in visual studio.net academic 2003"
- Previous message: Curt_C [MVP]: "Re: Setting credentials"
- In reply to: Curt_C [MVP]: "Re: Setting credentials"
- Next in thread: Curt_C [MVP]: "Re: Setting credentials"
- Reply: Curt_C [MVP]: "Re: Setting credentials"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|