Printer-friendly copy Email this topic to a friend
Lobby High-Tech topic #162126

Subject: "RE: School Me on Secure Login (PHP, of course)" Previous topic | Next topic
tdogg1191
Member since Jun 03rd 2003
880 posts
Wed Aug-27-08 11:16 AM

Click to send email to this author Click to send private message to this authorClick to view this author's profileClick to add this author to your buddy listClick to send message via AOL IM
1. "RE: School Me on Secure Login (PHP, of course)"
In response to In response to 0


          

I'm no PHP expert, but I do have some experience with it.

I believe that the difference between sessions and cookies is that seesions are stored on the server, and cookies are stored on the user's machine.

"Also, I mean, should my script just poll the database for an entry with a matching email, check the password and then set the session values??"
--Yes

"Oh and as for storing password... MD5 encryption the way to go?"
--I've used SHA1 (http://us3.php.net/sha1). Not sure if one is better than the other.


-----------------------------
There is no such thing as coincidence, just the illusion of coincidence itself.

Sign up: http://www.thecollegeforecast.com

My Site: http://trevordavis.net/

  

Printer-friendly copy | Reply | Reply with quote


School Me on Secure Login (PHP, of course) [View all] , alexthezombie, Wed Aug-27-08 06:35 AM
 
Subject Author Message Date ID
I think generally you assign the user a session ID when they login
Aug 27th 2008
2
fam you need to just buy a good book on php...
Aug 27th 2008
3
Maybe
Aug 27th 2008
9
      I understand...
Aug 27th 2008
10
Is this a secure method?
Aug 27th 2008
4
see #3
Aug 27th 2008
5
make a database call once. then load the result into the...
Aug 27th 2008
6
oh, and md5(sha1($pass)) is less secure than something like...
Aug 27th 2008
7
      ooooo, I like that
Aug 27th 2008
8
HELP!
Sep 08th 2008
11
call session_start(). And buy a book on php.
Sep 08th 2008
12
      I'm not THAT stupid
Sep 08th 2008
13

Lobby High-Tech topic #162126 Previous topic | Next topic
Powered by DCForum+ Version 1.25
Copyright © DCScripts.com