Logout to work

Ster

Member
Oct 26, 2020
68
15
BrainCMS 1.9.1 is broken logout as it'll refresh to home page again and I've seen threads answered with to work the code in logout file. I understand how but this code is very unique to the CMS I think?

If I can provide my file code then you could edit my source, to help me to inspect what is going wrong.

<?php
session_destroy();
$_SESSION = array();
header('Location: '.$config['hotelUrl'].'/index');
?>

I've also seen in some situation when it could be easier to delete this file and insert the working logout code on the logout button in the header file.

If you could guide me to the right way please. :)
 

Users who are viewing this thread

Top