Re: Froms Auth driving me NUTS!!!!! HELP Please....

From: george d lake (georgel@valleyyellowpages.com)
Date: 11/27/02


From: "george d lake" <georgel@valleyyellowpages.com>
Date: Wed, 27 Nov 2002 13:25:20 -0800


I did:

<authentication mode="Forms">

<forms name="tribles"

path="/"

loginUrl="login.aspx"

protection="All"

timeout="10">

</forms>

</authentication>

"Marina" <zlatkinam@nospam.hotmail.com> wrote in message
news:u##YIpllCHA.1588@tkmsftngp02...
> You need to specify Forms as the authentication type in web.config also.
Did
> you do that?
>
> "george d lake" <georgel@valleyyellowpages.com> wrote in message
> news:OrvpanllCHA.2064@tkmsftngp07...
> > I have this code that works perfect on one site but will not work on a
new
> > one.
> > Any Ideas?
> >
> > Code:
> > Login.aspx.vb
> > Dim ticket = New FormsAuthenticationTicket(1, UCase(tbUserName.Text),
Now,
> > Now.AddMinutes(20), True, User.DepartmentName.ToString)
> >
> > Dim hash As String = FormsAuthentication.Encrypt(ticket)
> >
> > Dim cookie As New HttpCookie(FormsAuthentication.FormsCookieName, hash)
> >
> > Response.Cookies.Add(cookie)
> >
> > Dim returnUrl As String = Request.QueryString("ReturnUrl")
> >
> > If returnUrl Is Nothing Then
> >
> > returnUrl = "/"
> >
> > End If
> >
> > Response.Redirect(returnUrl)
> >
> > Response.End()
> >
> >
> >
> > web.config:
> >
> > <authorization>
> >
> > <allow roles="Sales"/>
> >
> > <deny users="*"/>
> >
> > </authorization>
> >
> >
>
>



Relevant Pages

  • Re: Froms Auth driving me NUTS!!!!! HELP Please....
    ... > You need to specify Forms as the authentication type in web.config also. ... >> Dim hash As String = FormsAuthentication.Encrypt ... >> If returnUrl Is Nothing Then ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Froms Auth driving me NUTS!!!!! HELP Please....
    ... You need to specify Forms as the authentication type in web.config also. ... > Dim hash As String = FormsAuthentication.Encrypt ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Ruby + SSH + Sudo
    ... -a The -a (authentication type) option causes sudo to use the specified ... The system administrator may specify a list of ... BSD authentication where sudo has been configured with the ... This MAY allow it but it seems to require a specific system configuration. ...
    (comp.lang.ruby)