|
 |
aspdotnet_website_programming thread: User Authentication
Message #1 by "theraja" <syam@t...> on Wed, 14 Aug 2002 12:37:03
|
|
I am new to this and hope someone will come to my rescue.
I am currently working on the User and Authentication chapter and am
finding a problem to get the system to authenticate the user.
I have tried debugging the problem. I have managed to create a new user in
the database but when I try to log in as that user I can't authenticate
the user. The "Submit" event in the Login page successfully validates the
user (via SitePrincipal.ValidateLogin) but I can't get the user
authenticated via the "Context.User.Identity.IsAuthenticated" code within
the SiteHeader control. Consequently the header of the page still shows me
as the guest user.
I assume the system writes a cookie. Can anyone tell me where this is
stored and what it is called?
Am I missing anything else??
Message #2 by "Mike Gale" <info@d...> on Thu, 15 Aug 2002 08:14:14 +1200
|
|
Switch trace on in the pages you are investigating. This gives you a
lot of information about the HTTP stream.
If what you need is missing from trace you can write code to add items
to the trace output. (For example you could extract cookies from the
HTTP headers.)
Details in the framework documentation or your .NET reference books.
(For this sort of thing I find Professional ASP.NET (from Wrox) to be
extremely useful.)
Mike Gale, Decision Engineering (NZ) Ltd.
PS. If you are new at this it will take a time to become familiar with
HTTP, HTML, browsers, .NET... Take your time. Rome wasn't built in a
day.
-----Original Message-----
From: theraja [mailto:syam@t...]
Sent: Wednesday, 14 August 2002 12:37
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] User Authentication
I am new to this and hope someone will come to my rescue.
I am currently working on the User and Authentication chapter and am
finding a problem to get the system to authenticate the user.
I have tried debugging the problem. I have managed to create a new user
in
the database but when I try to log in as that user I can't authenticate
the user. The "Submit" event in the Login page successfully validates
the
user (via SitePrincipal.ValidateLogin) but I can't get the user
authenticated via the "Context.User.Identity.IsAuthenticated" code
within
the SiteHeader control. Consequently the header of the page still shows
me
as the guest user.
I assume the system writes a cookie. Can anyone tell me where this is
stored and what it is called?
Am I missing anything else??
Message #3 by "Claude Wynne" <claudew@i...> on Fri, 16 Aug 2002 07:30:41
|
|
I installed Service Pack 2 for the .Net Framework today and suddenly I'm
having the same problem. Although the MSDN website mentions that SP2
addresses security issues, I don't see any items on the list of bugs
fixed by SP2 as being relevant to this issue. Does anyone know what has
changed that is causing this problem?
|
|
 |