class hook_shop_system_sessionCheck {
function listen_injectAppTop() {
include($_SERVER['DOCUMENT_ROOT'] . '/session_made_here.php');
if (isset($_SESSION['test_session'])) {
// -- Do Stuff Here
}
}
}
Of course, this doesn't work and I'm not even sure if I'm using the right "listen_inject" function.
burt wrote: ↑Fri Oct 03, 2025 7:47 am
Could you explain what the SESSION value needs to do in the Phoenix part of your site ?
For sure, so the session is created during a separate login before viewing the catalog. The login piece works fine and my only hiccup is including the session that is created after logging in into PhoenixCart.
In the old osCommerce day, I would've put my session check logic in application_top.php. I'm just trying to figure out a proper way to avoid messing with application_top.php via a hook.
You can only have one session open at a time. So you should open your special session first; do whatever; close it; open the regular Phoenix session. hook_shop_system__09_sessionCheck->listen_startApplication