Jump to content

Featured Replies

Posted

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.

 

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?

Recently Browsing 0

  • No registered users viewing this page.