Page 1 of 1

[SOLVED] 8.1.7 Community - Sessions work ?

Posted: Mon Dec 04, 2017 7:49 pm
by samuel.vannesteBUSGvXT
Hello,
I have installed the community version 8.1.7 on a new server and my already running scripts didn't work correctly (previously used with a commercial 5.x version).

It took me some time to understand what caused the problem : the sessions won't work correctly. Even the simplest code would generate two sessions for one connection

Code: Select all

<?lc
set the sessionsavepath to gMySessionsFolder
set the sessionCookieName to gMySessionsCN
start session
put "test" into $_SESSION["myVar"]
put quote & $_SESSION["myVar"] & quote & "saved to session"
stop session

put empty
?>

<?lc
start session
put quote & $_SESSION["myVar"] & quote & "read from session"
stop session
?>
Before to fill any bug report, please is there something I could have missed about the server's requirements or not understood with the engine's evolution, maybe ?

Many thanks

Re: [SOLVED] 8.1.7 Community - Sessions work ?

Posted: Wed Dec 13, 2017 11:12 am
by samuel.vannesteBUSGvXT
Replying to myself : not a problem with LC server itself but with my antivirus which calls the URL before letting the browser access it.

Re: [SOLVED] 8.1.7 Community - Sessions work ?

Posted: Thu Dec 14, 2017 2:35 pm
by samuel.vannesteBUSGvXT
Found today a workaround: by setting the sessionid just before starting the session in any place, the session is no more doubled. This implies only to send that sessionid once to the client and checking if the session file exists or send a new sessionid if not. Perfect for me.