Go Down

Topic: Problem with PHP sessions (Read 536 times) 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.


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

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

shortcuts: alt+s submit/post or alt+p preview