jQuery Session Plug

jQuery Session Plug

So I'm trying to do some basic session management here, between jQuery and PHP.  
I'm attempting to set session variables in jQuery, and then access them on the next page using PHP.
I'm using the jQuery Session Plugin found here:   https://github.com/AlexChittock/JQuery-Session-Plugin


PAGE 1:
  1. [code]
  2. $.session.set('username', 'UsErNaMe');
  3. [/code]


PAGE 2 (PHP):  Outputs "NO USERNAME SET"
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['username'])){
  4.        echo "USER NAME IS " . $_SESSION['username'];
  5. }else{
  6.        echo("NO USERNAME SET!!!!");
  7. }
  8. ?>

PAGE 2 (JAVASCRIPT):  Outputs "UsErNaMe"

  1. alert("SESSION DATA: " + $.session.get('username'));

So basically, my problem here is that this jquery plugin is setting the session data for javascript, but it's not accessible via PHP.  Is there a way to solve this?