Pages: [1]   Go Down
Author Topic: Problem with PHP sessions  (Read 477 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

-br
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Maybe a cookie or PHP session expert will jump in with some thoughts.
No need. You are exactly correct.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: