When a user loggs in on my page his username and a his password (crypted using the crypt function) is stored in a session var.
On the top of every member page i check if the user is logged in. If he is, i crypt the password (using the same salt as the stored password) matching his username and compares it with the stored one in the session var.
If they dont match, redirect him to the login page..
Is this a safe way to handle login?
Tnx in advance and pardon my english 🙂
/erik