Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 12th, 2005, 9:24 PM   #1
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
How to write a login system?

Can someone give me a few pointers on how you would set up a server which someone uses a username and password to access, and then it remembers who is logged on? Sort of like this message board, for instance, but my thing can't use cookies. My friend is trying to write an IM program by the way, that's what this is for.
uman is offline   Reply With Quote
Old Jan 12th, 2005, 10:28 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
he can use a database (mysql) to store the login information.... and connect to it through ODBC... this community is also writing an IM program... named Element, it can be viewed in the Projects forum...
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jan 13th, 2005, 1:33 AM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
You create a login page, post the information to a script which reads and verified the information with a database (most likely) manage on the back-end of the website, and if it passes than you forward to the member login page (after storing data into the session which identified that a user has logged in successfuly). If not logged in properly, send back to the login page with an error.

A few notes... 1) you may want to use HTTPS for a secure login page, depening on the level of security that you actually required, and 2) you will want to PASSWORD encrypt the password when you store and test for it in the database, it makes it more difficult for a hacker to get control of your database and see what the passwords are for each user (since they are encrypted).
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:53 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC