Session strategies for liveCode server
Malte Brill
revolution at derbrill.de
Fri Jan 20 02:56:59 EST 2012
Thanks to sturgis from the forums I got it working now. The missing link was that the session needs to be stopped before the script terminates. This is a working example:
<?lc
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
?>
Happy camper now. :-)
Cheers,
Malte
More information about the use-livecode
mailing list