access session object from PHP with mod harbour

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

access session object from PHP with mod harbour

Postby Otto » Sat Feb 27, 2021 3:51 pm

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 6 guests