Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3593

Re: Standard practice: login pages

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> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
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 <j8ae1r$eb9$1@news.albasani.net> <j8ae7e$ekn$1@news.albasani.net> <j8amdl$7p0$2@dont-email.me> <MPG.29138fdda5e1942464@news.x-privat.org> <j8aqc0$upc$1@news.albasani.net> <MPG.29139f5357e301e065@news.x-privat.org> <j8aunf$7co$1@news.albasani.net>
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<OcfhCOK5EF936Ae=FDDZm8W4\YJNLUFDj8T]K0?CDmniOZG;K0KZo_dUT`:0II
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:3593

Followups directed to: comp.lang.php

Show key headers only | View raw


sl@exabyte wrote:

>> 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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Standard practice: login pages "sl@exabyte" <ecp_gen@my-rialto.com> - 2011-10-27 11:29 -0700
  Re: Standard practice: login pages "sl@exabyte" <ecp_gen@my-rialto.com> - 2011-10-27 11:32 -0700
    Re: Standard practice: login pages Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-27 00:24 -0400
      Re: Standard practice: login pages Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2011-10-27 15:57 +1100
        Re: Standard practice: login pages "sl@exabyte" <ecp_gen@my-rialto.com> - 2011-10-27 15:00 -0700
          Re: Standard practice: login pages Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2011-10-27 17:03 +1100
            Re: Standard practice: login pages "sl@exabyte" <ecp_gen@my-rialto.com> - 2011-10-27 16:14 -0700
              Re: Standard practice: login pages Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-27 11:21 +0200
                Re: Standard practice: login pages "sl@exabyte" <sb5309@hotmail.com> - 2011-10-27 21:31 +0800
          Re: Standard practice: login pages houghi <houghi@houghi.org.invalid> - 2011-10-27 08:43 +0200
            Re: Standard practice: login pages "sl@exabyte" <ecp_gen@my-rialto.com> - 2011-10-27 18:10 -0700
              Re: Standard practice: login pages houghi <houghi@houghi.org.invalid> - 2011-10-27 19:19 +0200

csiph-web