Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 November 8th, 2004, 09:52 AM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think my problem is in the header where it checks if it's authenticated. cause it never hits that point and procedes as if user never logged in. not sure why it's not authenticating. cause I can add new user and login in with correct email and password and also get error if i supply wrong password or emial address.

this is the code I have in Phile base

private void PhilePage_Load(object sender, System.EventArgs e)
        {
            if (Context.User.Identity.IsAuthenticated)
            {
                if (!(Context.User is PhilePrincipal))
                {
                    PhilePrincipal newUser = new PhilePrincipal(Context.User.Identity.Name);
                    Context.User = newUser;

                }
            }

if anyone can help, I would really appreciate it.

 
Old November 8th, 2004, 05:58 PM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you are right

if (Context.User.Identity.IsAuthenticated)
 is failing.

i changed the code in login.aspx.cs not to forward. and tested if it's true or false and on login in page it stays true but in the headerfile or anyother page it comes up as false.

going nuts over this one. HELP HELP










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