Sessions on LC Server

Alex Tweedly alex at tweedly.net
Tue Aug 27 08:08:37 EDT 2013


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.



More information about the use-livecode mailing list