Wrox Programmer Forums
|
BOOK: Professional ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Professional ASP.NET 4 in C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470502204
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 4 : in C# and VB 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 February 20th, 2012, 12:54 PM
Registered User
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default l

Edit: Sorry, I had meant to post this in Beginning section.

During the Try-it-Out session which involves password recovery control, I notice when I request the login page, I'm already logged in to what appears to be my PC name?

It's been a couple weeks before I resumed this chapter. I try logging out and the postback does happen, but nothing changes. I remained logged in.

Cookies and cache are cleared, and I'm pretty sure three of my profile accounts I created don't include my PC name.

Last edited by Corewave; February 20th, 2012 at 12:58 PM.. Reason: Wrong section
 
Old February 21st, 2012, 10:13 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile

Hi there

there is a authentication config tag in the web.config file. by default it's set to :

HTML Code:
<authentication mode="Windows" />
so by default you are logged in by your system user. other valid values to 'mode' attribute are :Forms, Passport, None

Forms Authentication is the most appropriate method.

HTML Code:
<authentication mode="Forms" loginUrl="~/login.aspx" defaultUrl="~/default.aspx" />
LOGIN:
FormsAuthetication.SetAuthCookie(username, true/false);

first parameter is username and second one for persistent login.

LOGOUT:
FormsAuthetication.SignOut();

more information is available if you need it.
__________________
happy every time, happy every where

Reza Baiat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch16 PasswordRecovery won't email smiller BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 October 11th, 2006 03:59 PM
view forum in ch16?!! the world BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 December 22nd, 2005 08:28 AM
logout TIME and logout DATE crmpicco Classic ASP Databases 2 January 20th, 2005 12:01 AM
logout TIME and logout DATE crmpicco Classic ASP Basics 0 January 19th, 2005 07:57 AM





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