Re: Authentication

From: Date: Thu, 04 Jul 2002 20:46:10 +0000
Subject: Re: Authentication
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105499@lists.php.net to get a copy of this message
Would you look what I started!! Thanks for all the pointers. How about using JavaScript to grab things like the OS + browser as *added* security? In the same way, the screen resolution, colour depth and other browser variables could be compared. I do not see any reason for the user to log in and use my site, then later in the day come back to the homepage and expect to be automatically logged in which may simplify things a bit. "Martin Clifford" <MLC1@nrc.gov> wrote in message news:sd231b21.019@nrcgwia.nrc.gov... Sessions make life so much eaiser, in my opinion. I used to do what you do, passing from one page the next. Now, when a user successfully logs in, ONE line of code passes all the necessary variables from page to page without me having to do a damn thing. I don't personally see TOO much wrong with passing the encrypted password along, especially since you aren't displaying it in the URI's query string. BUT, if someone DID get a hold of the encrypted password, they can run millions of words through md5() until one matched. I would hope that people aren't bored enough to do that, but past actions have proved that wrong. The magic line: session_start(). That's it. It holds ALL information about the session, and makes my life SO much eaiser. HTH Martin >>> "Peter" <newsaddress@saracenvsu.org.uk> 07/03/02 03:32PM >>> On my site, when a user logs in, their password is encrypted using md5() and the username and encrypted password is then passed from page to page using hidden form inputs (clicking on a link submits the form using POST). Does anyone have any comments on this method e.g. security wise? I know I could use sessions or cookies but is it relly necessary? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#105499) next »