Advertisement

06.15.2008 at 11:32AM PDT, ID: 23486477 | Points: 500
[x]
Attachment Details

Loggin in a user after creating

Asked by hoyaabanks in Programming for ASP.NET, C# Programming Language

Tags: Microsoft, .NET, 2.0, ASP and C#

I am trying to log in the user using the FormAuth... object.  IT doesn't seem to work.

The code below creates a new user, adds user profile info to a second database, and trys to log the user in.  The issue is that I cannot access:

HttpContext.Current.User.Identity

It is not set.  I want to create a user and then have the Current HttpContext reflect that this use is in fact logged in,  

How do I do that?

Start Free Trial
 
Loading Advertisement...
 
[+][-]06.15.2008 at 11:53AM PDT, ID: 21789345

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.16.2008 at 05:33AM PDT, ID: 21792914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628