
Originally Posted by
djr33
As for passwords, yes, they are encrypted, specifcally with the md5 has thing. That, and the username is stored in their cookie.
Hmm, that's rather dodgy, in my opinion. Hashes can be brute-forced, which could lead to compromised accounts (not that anyone's likely to attack you, but still).
As for different servers... ew. My host doesn't do what you showed above, so I have two seperate things: thebrb.com and thebrbforums.com.
so... totally different servers, not just subdomains. Thoughts?
The cookies won't be transferable. Simple as that. If the user can log in at thebrb.com and do things there, they'll have to log in again if they go to thebrbforums.com..
And... still, how do I actually get these values?
Use the $_COOKIE superglobal:
PHP Code:
$username = null;
if (isset($_COOKIE['user'])) {
$username = $_COOKIE['user'];
}
Mike
Bookmarks