Re: Downside to using login sessions?
| From: | Nathan Taylor | Date: | Sat, 15 Jun 2002 09:55:47 +0000 |
| Subject: | Re: Downside to using login sessions? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102326@lists.php.net to get a copy of this message | ||
As a general rule it is always good to store data that is secure in a encrypted format. My website
for example uses a mysql database and I store the encrypted mysql password in the cookie so I get
somethign like 435gcg34tsskhj57 to equal 123. It's far more secure because cookies are on the
user's computer and anything there is not secure, regardless of who the owner is.
----- Original Message -----
From: Leif K-Brooks
Sent: Saturday, June 15, 2002 5:53 AM
To: Justin French
Cc: php-general@lists.php.net
Subject: Re: [PHP] Downside to using login sessions?
I'm currently storing the username and password directly in cookies (the
password isn't even md5()'d). I'm just wondering if there's security
risks/whatever in sessions. I've seen that most sites seem to store the
login data directly in the cookie (with the password md5()'d). Is that
because there's something wrong with sessions, or did they just not use
them for no reason? Thanks.
Justin French wrote:
>How is it currently storing it?
>
>Sessions are fine, depending on how the code is written, and the obviouse
>downside to COOKIE based sessions is that they will break on non-cookie
>browsers, so a smarter move is to use URL based sessions.
>
>A more focused question will of course result in a more focused answer :)
>
>Justin French
>
>
>on 15/06/02 6:59 PM, Leif K-Brooks (eurleif@buyer-brokerage.com) wrote:
>
>
>
>>I am planning to change how my site stores logins to using sessions.
>>Are there any reasons not to do this? Reasons against it I should
>>know? Thanks for your input.
>>
>>
>>
>
>
>
>Get more from the Web. FREE MSN Explorer download :
>http://explorer.msn..com