title: how to see if php session has been set by using jquery
body: <p>Do i have to do something like <code>var session = "&lt;?php = $_SESSION['sessionname'] ?&gt;";</code><br>
  Or is there a jquery statement for it?
  <br><br>I want to be able to check if the session exists using jquery
  <br><br>I need to do this because, when the user inputs his username, an ajax loads a php file to validate it. This php starts a session if the email does not match. I tried JSON but it did not seem to work for me.<br><br>I will be happy to hear any other way to solve this as well :)</p>