Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2003, 06:06 PM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Context.User

After successfull validation on my Login.aspx page I execute the following code:-

Context.User = newUser;
FormsAuthentication.SetAuthCookie( SSN.Text, true );

In my Web.Config file I have following configuration :-

<authentication mode="Forms">
    <forms name="PayDayLoanWebsite" path="/"
      loginUrl="/PayDayLoanWebsite/Modules/Accounts/Login/Login.aspx"
      protection="All" timeout="30">
   </forms>
 </authentication>

But when I go to the next page, MyAccount.aspx, the Context.User.GetType() returns me "System.Security.Principal.GenericPrincipal" in my application where as in ThePhile it returns "Wrox.WebModules.Accounts.Business.PhilePrincipal" ; which is what I want. Somehow I am loosing the context between the pages.

Please help me with this problem, I've spent enough hours on this and not able to solve it.

Thank you.

Niketu







Similar Threads
Thread Thread Starter Forum Replies Last Post
Context.User.Identity.Name jimbeam36 BOOK: ASP.NET Website Programming Problem-Design-Solution 4 November 6th, 2004 06:33 AM
(SitePrincipal)Context.User Philey BOOK: ASP.NET Website Programming Problem-Design-Solution 3 October 8th, 2004 05:38 PM
Context User davidroth BOOK: ASP.NET Website Programming Problem-Design-Solution 0 April 14th, 2004 12:49 AM
Maintaining Context.User cjh301 BOOK: ASP.NET Website Programming Problem-Design-Solution 6 March 30th, 2004 04:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.