Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Trude Triahal Posted March 28 Posted March 28 I've included a statement like: $_SESSION['someData'] = "somedata"; inside the manage() method inside applications/core/module/front/system/register.php. After visiting the register page I've called another script sessionread.php <?php require_once('full_path_to/init.php'); \IPS\Session\Front::i(); die(var_dump(\IPS\Member::loggedIn())); I'm unable to see the `someData`field inside the dumped session, any idea where things go wrong? Outcome should be: 1.) Set session data upon signup page (when user visits the "register" page). 2.) Being able to read this session data field from my external script.
teraßyte Posted March 28 Posted March 28 I'm confused. 🤨 You're adding data to $_SESSION, but then you're dumping \IPS\Member::loggedIn() which doesn't contain/read $_SESSION in the other file. What exactly are you trying to do? DawPi and G17 Media 1 1
Recommended Posts