Anyone know if you can save a session variable from a PHP include?
I have a Dashboard page which has header.php as a Wappler include. In my header.php file, I have a log out button which on click is supposed to save a new session called loggedout=true and then redirect to login.php page.
The redirect is working fine but for some reason the session is not saving. I’ve copied the exact same session in to a standard php file to test and that is working fine.
Unless someone knows otherwise, it appears that saving a session or cookie does not work from an include.
Community Page
Last updated:
Last updated: