-
php login
ok guys i need some expert help here, currently im using sessions for my login
once a user logs in i create a session
$_SESSION['username'] = $Username;
and then on other pages i use stuff like
if (isset($_SESSION['username'])) {
//allow acess..
}
but is there a better way? because when i log in and go 'back' to previous page it says 'info lost' you must refresh etc. isnt there a way i can go back smoothly?
-
Re: php login
You can't log in and go back, have you tried that on any other website? It just doesn't work.
Also, that's why there is usually a confirmation screen with a redirect to another page - so you can't go back accidentally and repost the form.