Reply
How to Set-up a Site Login?
Old 04-29-2007, 09:47 AM How to Set-up a Site Login?
empressreborn's Avatar
Skilled Talker

Posts: 59
Name: Jenn
Location: Stonewood, WV
I need to design a site that has the ability for multiple logins. I do not possess *any* coding experience. What is the best way to approach this?
__________________
http://www.jennmurray.com

empressreborn is offline
Reply With Quote
View Public Profile Visit empressreborn's homepage!
 
When You Register, These Ads Go Away!
Old 04-29-2007, 09:52 AM Re: How to Set-up a Site Login?
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
first chose the language you are going to use ( i guess you chose php ).
next you will need to decide where to store you're users ( recomended mysql or another type of database )

then if you say you have no experience with php. You must read a few tutorials about the basic of it ... before you start to implement a login system.

PS : what do you mean by multiple login
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 04-29-2007, 10:17 AM Re: How to Set-up a Site Login?
empressreborn's Avatar
Skilled Talker

Posts: 59
Name: Jenn
Location: Stonewood, WV
i.e. multiple login: I was under the impression that there are 2 types of logins--a login configured for only one password and login, and one set-up so users can each define their own logins and passwords
__________________
http://www.jennmurray.com

empressreborn is offline
Reply With Quote
View Public Profile Visit empressreborn's homepage!
 
Old 04-29-2007, 10:34 AM Re: How to Set-up a Site Login?
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
you are right to some exetend

extra info about what a loging system should contain :
1. a login page. It should have page where users can add they're user and password and login.

2. The login script. In the login page the action for the login form should be this login script. Here you check the username and password agains you're list of users and login the user or return the user to the login page with an error message ( depending on the case )

3. A function that check if an user is loged in or not. This function will redirect an user if he is not logged in and try's to enter a members area

4. A script to add/edit/delete users for the admin.
This could be done at first directly from the databse withou any aditional scripts

5. Also optional ( at first ) a page for forgotten password. This should have a link on the login page. The users must have beside the username and password an e-mail adress where you can send them they're password in case they forget it.

In short you should make the folowing :
1. a filed called users.functions.php that contains the folowing functions :
- check_login() check if a user is loged in and redirect him to the login page if he is not
- login_user() try's to login a user that used the login form
2. login_form.php a simple page that has a form with the login.php at the action tag
3 login.php trigers the function login with the variables posted in the form from login page ... and send the user back to the login page or to the members area

I hope you understood my logic
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 04-29-2007, 01:58 PM Re: How to Set-up a Site Login?
kaisellgren's Avatar
Extreme Talker

Posts: 214
Name: Kai Sellgren
Location: Finland
http://www.pixel2life.com/tutorials/...rship_scripts/
http://www.hotscripts.com/PHP/Script...ems/index.html
Should give you a boost.
__________________
Adept Web Community
kaisellgren is offline
Reply With Quote
View Public Profile Visit kaisellgren's homepage!
 
Reply     « Reply to How to Set-up a Site Login?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13980 seconds with 12 queries