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 August 20th, 2003, 10:31 AM
Registered User
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PhilePage Session ?

Can someone explain to me how the PhilePrincipal is persisted from page to page?

Why is this line in the PhilePage's Page_Load event:
"if (!(Context.User is PhilePrincipal))"

It seems to create (go to the DB) PhilePrincipal on EVERY request. I can't find an explanation in the book as to why this check is done. The Context.User will NEVER be (PhilePrincipal)Context.User.???

Wouldn't we want to serialize PhilePrincipal into a Session variable and just grab that every time?

I'm guessing this is just another example of how the authors present a technique but leave it up to the reader to research WHY it is being done.

This is a very thought provoking book. Luckily, we have this forum to fill in the blanks!

Similar Threads
Thread Thread Starter Forum Replies Last Post
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM
About Session mani_he Beginning PHP 7 September 18th, 2004 03:47 PM
PhilePage Class on p. 58 JeffSpitzer BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 8th, 2004 09:08 AM
PhilePage execution order jnorbut BOOK: ASP.NET Website Programming Problem-Design-Solution 2 August 28th, 2003 11:56 AM
PhilePage.cs Page_Load event betulus BOOK: ASP.NET Website Programming Problem-Design-Solution 2 June 10th, 2003 02:46 AM

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