Adding Custom Sessions
Posted: Fri Oct 03, 2025 1:17 am
I'm trying to figure out the best way to include a session that is created outside of PhoenixCart (but on the same domain).
I've tried to create a hook to check and I wanted to see if I was on the right track.
Of course, this doesn't work and I'm not even sure if I'm using the right "listen_inject" function.
I've tried to create a hook to check and I wanted to see if I was on the right track.
Code: Select all
class hook_shop_system_sessionCheck {
function listen_injectAppTop() {
include($_SERVER['DOCUMENT_ROOT'] . '/session_made_here.php');
if (isset($_SESSION['test_session'])) {
// -- Do Stuff Here
}
}
}