Aren't session related variables implemented using browser cookies to identify the session? I've not yet seen an arduino web client that supports cookies. Of course, all browsers do.
Maybe a cookie or PHP session expert will jump in with some thoughts.
More on cookies: HTTP cookie - Wikipedia
-br