Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2998179.SPkdTlGXAF@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 27 Oct 2011 11:21:21 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: Standard practice: login pages Newsgroups: comp.lang.php References: Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 26 NNTP-Posting-Date: 27 Oct 2011 11:21:21 CEST NNTP-Posting-Host: 091c1f2a.newsspool2.arcor-online.net X-Trace: DXC=\5:IO[Fof5@@k=MdN::NBIA9EHlD;3YcB4Fo<]lROoRA8kF> Create a simple php function that checks to see if a user has already >> authenticated, return Y/N. >> >> Call the function at the top of every page except the logon/off page: >> if auth = 'N' direct to logon page >> if auth = 'Y' do whatever the page is supposed to do >> >> Store the user/passwd details in a database. >> >> Maintain the logged-in status of users using a session cookie. > > With this tip, I think it will save a lot of my time banging my head > around. Of course, the competent and more efficient solution is to return a boolean from a session object's method. PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16