Re: Setting credentials

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: tshad (tscheiderich_at_ftsolutions.com)
Date: 01/14/05


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.
>>
>
>



Relevant Pages

  • Re: FormsAuthentication - Changes in .Net Framework 1.1 ?
    ... Set up an auth page in each project and use forms auth on a project by ... What we have found is the cookie name keys the forms auth in a single domain ... the Login-Mechanism an the redirect works fine. ... > Login-Project: ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: FormsAuthentication cookie refreshing
    ... Without altering the forms auth model, it only extends time when a page is ... you will have to refresh an actual page. ... I am trying to refresh the cookie to make sure the timeout is reset by ... understand how XMLHTTPRequest really works at all! ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: FormsAuthentication cookie refreshing
    ... 'Without altering the forms auth model, it only extends time when a page is ... how is using xmlhttp to hit the aspx page different to using a normal ... at which point the cookie may have expired. ... you will have to refresh an actual page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Authentication and Active Directory
    ... if all the ducks are in a row and the logon is actually ... all use those headers to implement the proper conversation between client ... Negotiate auth. ... a resource on the site with Negotiate auth to see what it does. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • get returning user for forms auth?
    ... application-specific session variables for that user. ... user again when he reenters the site; I pondered checking auth cookie ... How do I find out that authenticated user is re- ...
    (microsoft.public.dotnet.framework.aspnet.security)