Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Verifying session info

unset($username);
 if (isset($_SESSION['login'])) { 
     list($c_username,$cookie_hash) = explode(',',$_SESSION['login']); 
     if (md5($c_username.$secret_word) == $cookie_hash) { 
        $username = $c_username; 
     }else{ 
        print "You have tampered with your session."; 
     } 
}
Source by softwarezay.com #
 
PREVIOUS NEXT
Tagged: #Verifying #session #info
ADD COMMENT
Topic
Name
4+3 =