Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3593
| Message-ID | <2998179.SPkdTlGXAF@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2011-10-27 11:21 +0200 |
| Subject | Re: Standard practice: login pages |
| Newsgroups | comp.lang.php |
| References | (2 earlier) <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 |
Followups directed to: comp.lang.php
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
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