Page 1 of 1

access session object from PHP with mod harbour

Posted: Sat Feb 27, 2021 3:51 pm
by Otto
Dear Antonio,
Is it possible to access session objects created in PHP with a mod harblur file?
I tried:
in PHP
$_SESSION["username"] = "admin";


in prg file
var loggedin = sessionStorage.getItem("username" );
alert(loggedin);

but do not get the value.

Best regards,
Otto