Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 28, 2024Mar 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.
March 28, 2024Mar 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?