Its been a while since I messed with sessions, but that looks right. I seem to vaguely remember that there is some version of LC server where sessions is broken, but I can't recall for sure. What version of server are you running? (IIRC sessions was implemented some time around 4.6.3? And a later version was broken and later fixed) I'll see if I can relocate the info.
On Thu, Aug 2, 2018 at 5:53 PM Tim Selander via use-livecode < [email protected]> wrote: > Thanks, Mike. > > This seemed like a good hint/possible solution. > > Another though has just occurred to me also.. If you use session > > variables, you can store the search term in the session, and since the > > browser will re-post on reload, if $_POST and your session variable > contain > > the same search term, its possible (likely?) that it was a reload rather > > than a new search, then don't do the search. Not sure if this is helpful, > However, when I tried > <?lc > start session > put "test" into $_SESSION["keyword"] > put $_SESSION[keyword] > stop session > ?> > and the server returned the error > > file "/home/pba/public_html/lifelinesearch.lc" > row 2, col 1: > > This snippet is at the very top of the page, so row 2 is "start session." > > Am I misundertanding the syntax of 'session'? > > Thanks, > > Tim > > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
