Passing Variables in a non-CGI LC Server?

Rick Harrison harrison at all-auctions.com
Mon Apr 10 14:13:17 EDT 2017


Hi Mike,

Thanks, I’ll check it out!

Rick

> On Apr 10, 2017, at 1:22 PM, Mike Bonner via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> If you're interested in trying session variables again, I got word back
> that the issue I was having is fixed in 8.1.4 rc1 and it does indeed solve
> it. (hoping on-rev updates soon)  The newer version also solves the error
> you were having (which required using sessionsavepath as a workaround)
> I have a very simple page set up on digitalocea (short term) at
> http://104.236.179.13/test.lc if you want to see it working.
> 
> The script i'm using is:
> 
> <?lc
> 
> start session
> 
> if $_SESSION["counter"] is empty then
>   put 1 into $_SESSION["counter"]
> end if
> 
> 
> put "Session counter=" & $_SESSION["counter"] & "<br>"
> -- same here, puts the current counter
> 
>  add 1 to $_SESSION["counter"]
>  put "Incrementing Session counter:" & $_SESSION["counter"]
> -- increments and displays the future counter
> put "<br> The session id is " & the sessionid
> stop session
> 
> put "<br>" & the version
> put "<br>" & shell("uname -a")
> 
> ?>
> 





More information about the use-livecode mailing list