title: set session variable in Jquery
body: <p>I am developing a login form. i want to verify username/password using JQuery (and PHP). </p>
  
  <p>1) if usr/pwd is not correct, show message accordingly (without page refresh)</p>
  
  <p>2) and if usr/pwd is correct 
     i) set session variable
     ii) redirect page</p>