![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|