Re: ASP.NET Forms Authentication don't work on some Window XP

From: Irishmaninusa (jdaly_at_structuctureinteractive.com.takemeoffifyouwantoemailme)
Date: 09/23/04


Date: Thu, 23 Sep 2004 11:12:56 -0400

did you ever get this sorted out. Reason for asking is because I have seen
this in a site I am currently working on. On the server I can't get past the
login screeen. Yet while working on the site in VS.NET it allows me to
continue on. And at one point if I tried to access the site from the server
itself it would log me in, but that is no longer the case now. So I saw your
problem down below and was wondering if you had solved it or not.

"May BA via .NET 247" <anonymous@dotnet247.com> wrote in message
news:eipelaekEHA.1904@TK2MSFTNGP09.phx.gbl...
(Type your message here)
I am working on ASP.NET project where I am using form authentication, it
seems to work fine on all OS including XP except on some XP machines in the
department, I have been told that these machines are ghosted, which mean
that they crashed in the past, so they installed XP on them. The
authentication is developed using custom ticket authentication.

Dim strRoles As String = AssignRoles(USRole)
          FormsAuthentication.Initialize()

          Dim ticket As FormsAuthenticationTicket = New
FormsAuthenticationTicket( _
              1, _
              USID.ToString, _
              DateTime.Now, _
              DateTime.Now.AddMinutes(30), _
              True, _
              strRoles)

          Dim hash As String = FormsAuthentication.Encrypt(ticket)
          Dim cookie1 As HttpCookie = New
HttpCookie(FormsAuthentication.FormsCookieName, hash)

          cookie1.Expires = ticket.Expiration
          Response.Cookies.Add(cookie1)

One time I changed the authentication persistent attribute from true to
false, it seemed to work for a while but now it is not working any more. I
noticed that after the user login, the authentication cookie was created,
however; it is lost after redirecting the user to another page. Also, it
seems to work fine if I use

FormsAuthentication.SetAuthCookie(Username, True)

However; I need to use Custom Authentication cookie. Any Ideas?

--------------------------------
From: May BA

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3qm14zo67UO8QE8qvsGXwQ==</Id>



Relevant Pages

  • Re: Kerberos machine authentication - apparent authentication fail
    ... > until logon), the wireless connection can kick off when it is ready. ... > was confirmed in the server event logs with IAS (i set that up as the radius ... > as an ordinary user kicks in and takes over from the machine authentication. ... > while the network sorts itself out and a double click on a network link of ...
    (microsoft.public.windows.server.security)
  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... SYSTEM account. ... In IIS I took the virtual server that I was testing, ... Authentication premise. ... From a website perspective, I ...
    (microsoft.public.inetserver.iis.security)
  • Need help configuring Wireless Connection profile
    ... I have an SBS 2003 server and a Server 2003 member server set up using RADIUS ... Windows authentication for all users,4129,LRG\ryanv,4149,Wireless WPA2 PEAP ... Certificate Services ...
    (microsoft.public.windowsxp.general)
  • Re: Remote Web Workplace Issues-Please help!
    ... Open the Server Management Console, ... client after Authentication" right. ... permissions, and Microsoft Windows user rights according to the KB 812614. ... Download the IIS Resource Kit tools from the following page: ...
    (microsoft.public.windows.server.sbs)
  • [REVS] NTLM HTTP Authentication is Insecure By Design
    ... in front of a web server, and that proxy server shares a single TCP ... These are attacks that make use of non-RFC HTTP requests (HTTP Request ... the authentication is associated with the ...
    (Securiteam)