Re: [Phplib-users] Re: Default Auth? 7.2d
Brought to you by:
nhruby,
richardarcher
From: <fr...@on...> - 2002-02-16 14:16:19
|
On Fri, Feb 15, 2002 at 09:57:50PM -0500, Christian Roy wrote: > Why should it? I think it's perfectly normal for someone to access a > protected page and then hit "Home" link of the menu! From a user point of > view, having to hit "cancel" on the login form to access the non-protected > pages is not natural. Once logged in it should work fine to move freely back and forth among those pages that require login and those that don't, without the visitor having to log in again (for the life of the session). I've created some phplib-based sites that work just that way. It's only the login form/page itself that is modal. > The home page will show different things depending if the user is logged > in or not. That's easy to do: if (isset($auth) and isset($auth->auth['uname'])) // display stuff for logged-in user else // display stuff for default user (I don't think it works to test $auth->auth['uid'], but I forget why.) > When the user hit a protected page and decide to go back to the > home page, he should still be logged in as "nobody"! He should not be > presented with a login form on the home page, ever! If the "cancel button" method is not sufficient for you, then you may have to hack phplib. As you say, "good luck"! -- Fred Yankowski fr...@on... tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA |