PHP sessions and security -



PHP sessions and security -

i'm trying decide on level of security regards session management on php site. @ top of every page php tag run

if (!isset($_session["user"])) {header('location: login.php');}

the user session created on login, guys think secure enough? whole site runs in ssl.

well, beingness secure has 100's of different topics... in terms of trying achieve, yes think that's fine

i add together additional validation checking $_session['user'] definately right user, , seek compare session user's ip address, user agent , other things observe session hi-jacking

you should exit; after header("location: x"):

header("location: xyz.php"); exit;

php

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -