I'm trying to get sessions working on LC Server with no luck.

I'm using code from http://lists.runrev.com/pipermail/use-livecode/2012-January/166885.html
which was where Malte got this to work OK - so it ought to be working code.
(I added the line to print out the version - but it failed without that too. Also fails without setting sessionid)

I'm on pancake.on-rev.com, using version 5.0.2 of LC server, and I get

5.0.2

file "/home/.../play.lc"
  row 4, col 1:

from my file play.lc

<?lc
put version()
set the sessionid to "100"
start session
if $_SESSION["counter"] is empty then
  add 1 to $_SESSION["counter"]
put "No previous session detected. Session counter=" & $_SESSION["counter"]
else
  add 1 to $_SESSION["counter"]
  put "Session counter:" & $_SESSION["counter"]
end if
stop session
?>

Any ideas ?

Thanks
-- Alex.
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to