Go Down

Topic: Problem with PHP sessions (Read 1 time) previous topic - next topic


I have a web page that serves up content to instruct my Arduino UNO.
The content depends on comparing a variable to a stored session variable.  The session variable is stored with a new value each time it is accessed.

When I browse to the page, it works exactly how it want it to, but the Arduino seems to always see it as though the session variable has never been stored.  So the session is not persisting.

Is there something special I need to do to make the session persist for the Ethernet Shield?

Using Arduino UNO with Ethernet Shield W5100 For Arduino 2009 UNO Mega 1280 2560

Haven't seen a marquee for so long I just had to do this


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://en.wikipedia.org/wiki/HTTP_cookie



Maybe a cookie or PHP session expert will jump in with some thoughts.

No need. You are exactly correct.
The art of getting good answers lies in asking good questions.


It's been awhile since I've worked with PHP sessions, but I believe you can pass the session id via the URL. This is where I would start reading on it. http://php.net/manual/en/session.constants.php

Go Up