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:13:43 -0800


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

  • Search pattern
    ... Dim strfile As String ... Dim bAddressFound As Boolean ... Dim strCurrentChar As String ...
    (comp.databases.ms-access)
  • Re: multiplatform (pocketPC & desktopPC) (Daniel !!)
    ... Friend Versione As String ... Public Sub GetMyConnectionPalmare() ... Dim errorMessages As String ... Private Function GetDS_Desktop(ByVal SQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: multiplatform (pocketPC & desktopPC) (Daniel !!)
    ... Friend Versione As String ... Public Sub GetMyConnectionPalmare() ... Dim errorMessages As String ... Private Function GetDS_Desktop(ByVal SQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.compactframework)
  • Help answer these 70-310 questions
    ... One argument is the string ... Dim output As New StringBuilder ... EmployeeLocations. ... You create a strongly named serviced component. ...
    (microsoft.public.cert.exam.mcad)
  • Help answer these 70-310 questions
    ... One argument is the string ... Dim output As New StringBuilder ... EmployeeLocations. ... You create a strongly named serviced component. ...
    (microsoft.public.cert.exam.mcsd)