php - I need to show logged user's name -


i using webpage password protector, used external code box big

http://paste.ofcode.org/xjvfynz9dblekjri2dwru9

it's working fine want make loged user's name appears in protected page after logging in successfully. may please helpe me ?

modify part of code:

  else {     // set cookie if password validated     setcookie("verify", md5($login.'%'.$pass), $timeout, '/');      // programs (like form1 bilder) check $_post array see if parameters passed     // need clear password protector variables     unset($_post['access_login']);     unset($_post['access_password']);     unset($_post['submit']);   } 

to read as:

  else {     // set cookie if password validated     setcookie("verify", md5($login.'%'.$pass), $timeout, '/');      echo "username: " . $login;      // programs (like form1 bilder) check $_post array see if parameters passed     // need clear password protector variables     unset($_post['access_login']);     unset($_post['access_password']);     unset($_post['submit']);   } 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -