Re: Setting credentials

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

From: Curt_C [MVP] (software_AT_darkfalz.com)
Date: 01/14/05


Date: Fri, 14 Jan 2005 16:01:32 -0600

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?

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

  • Setting credentials
    ... 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. ... sub submit_click ...
    (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)
  • Re: Net::SMTP fails
    ... script normally wouldn't come to if the auth section that I commented ... sub send_mail { ... Fear is the mind-killer. ...
    (comp.lang.perl.misc)
  • Re: Exchange SMTP auth failing
    ... I saw this kind of logon mentioned in another post and did wonder if it ... Still the credentials aren't accepted. ... Under the SMTP server Auth properties, all three options (anonymous, ...
    (microsoft.public.exchange.connectivity)
  • Web site calls Web site ?
    ... I am using Form Auth. ... It is also SSL ... After a user successfully logon to my site, s/he will push a Button, this ... The listener page in my site is also protected by the ...
    (microsoft.public.dotnet.framework.aspnet.security)