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

From: Marina (zlatkinam@nospam.hotmail.com)
Date: 11/27/02


From: "Marina" <zlatkinam@nospam.hotmail.com>
Date: Wed, 27 Nov 2002 16:19:22 -0500


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 ... >> If returnUrl Is Nothing Then ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web DAV only works when authenticated to OWA
    ... > Dim objRequest 'As MSXML.XMLHTTPRequest ... > Dim strXMLNSInfo 'As String ... > ' Specify the URL of the new object to be created. ... > ' Put it all together in an HTTP request. ...
    (microsoft.public.exchange.development)
  • Web DAV only works when authenticated to OWA
    ... Dim objRequest 'As MSXML.XMLHTTPRequest ... Dim strXMLNSInfo 'As String ... ' Specify the URL of the new object to be created. ... ' Specify the Business Address Information. ...
    (microsoft.public.exchange.development)
  • RE: Change alternate shading of all tables in a document by means of I
    ... The macro below should do what you want. ... Changes to the macro are needed if the macro must find shading ... Dim Msg_ColorOld As String ... Response = MsgBox("You must specify a color. ...
    (microsoft.public.word.vba.general)