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


Groups > comp.lang.php > #3590

Re: Standard practice: login pages

From "sl@exabyte" <ecp_gen@my-rialto.com>
Newsgroups comp.lang.php
Subject Re: Standard practice: login pages
Date 2011-10-27 16:14 -0700
Organization albasani.net
Message-ID <j8aunf$7co$1@news.albasani.net> (permalink)
References (1 earlier) <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>

Show all headers | View raw


>> I thinking of the following scenario:
>>
>> 1. Each user logs in with its own user name and password.
>>
>> 2. Multi-pages possible, eg view payment records, current user
>> selections etc.
>>
>> 3. Certain services are accessible after logging in, eg selection of
>> items, payment.
>>
>> 4. As of now, all users have the same previleges.
>>
>> I think it is like CPanel, but not that complicated.
>
> 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.

Thanks a lot.

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