This can be quite simple, or complex, depending on (1) how the
individual pages on the site will determine whether nor not the user
has access (or is logged in), and (2) how extensible this will need to
be in the future. Will there be multiple apps that will want to use
the same log in system? Like Yahoo for instance--log in only once and
access all the goodies, mail.yahoo.com, calendar.yahoo.com,
bookmarks.yahoo.com and so forth.
Without getting into long-winded details (which I will consider doing
upon request) I can see two scenarios off the top of my head...
1) Authentication is done via the web server, and site visitors will
see the typical browser pop-up asking for name & password. Advatages:
can be used to protect static pages, whole folders, and what have you,
not just PHP. In this case, the registration page just needs some way
to enter the user's name & password info into whatever flat file or
database server is being used by the web server. Flat text files w/
Apache for example. Disadvantages: less programmable flexibility in
the long run, especially if there will be multiple levels of access.
Also if profiding an email address is part of the registration, you
may want to program in a way to validate that address.
2) Authentication via PHP Session. All pages on the site are PHP, and
all pages start with code like require_once('security.php'); which
contains code to start the session and search to see if a variable
like Is_Logged_In exists. If it doesn't, store the requested page as a
session variable, and redirect to a log-in page, which also has a link
to a sign-up page.
Looking at some existing source code may help. At the moment I can
only think of one PHP-based open source project that has a
sophisticated log in and registration system, www.drupal.org
Hope this helps some,
Gunther
--- In [email protected], "kat_wolf_eagle" <[EMAIL PROTECTED]>
wrote:
>
> Hi ..
>
> I am trying to make my "client" happy by making a registration page
> active (www.whatsdadilly.com/registration.htm) but there are a few
> snags.. I need to figure out HOW to do this, as well as a log-in
> script, and a profile page active
> (www.whatsdadilly.com/profilepage.htm) ... is there a java script that
> can help me with this? Or is it php thing that I need to make a
> gagillion tables for storing data entered from the one registration
> page to be loaded into the other profile page? Cuz I am getting lost
> in all this....
>
> I was going to use "Profile Manager Basic 3.0" but since the free
> version does not allow for picture uploading, he does not want it....
> *sigh.... am NOT getting paid enuff for this stress....
>
>
>
> Katt
>
> (PS- sorry if this gets crossposted... running out of ideas of where
> to look for help)
>
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/