I'm having trouble passing sessions between pages in PHP right after calling "\IPS\Session\Front::i();", which checks for active sessions in other web resource running IPS 4.2 (init.php).
PAGE 1:
require('../../init.php');
session_start();
\IPS\Session\Front::i();
$username = \IPS\Member::loggedIn()->name;
$_SESSION['username'] = $username;
header('Location:http://example.com/page2');
exit;
PAGE 2:
session_start();
var_dump($_SESSION);
IPS Seems to have an ability to reset the session, have no idea how to fix that. Thanks in advance!