Elxis CMS Forum
Support => General => Topic started by: khaled on October 09, 2008, 19:36:24
-
Hi everyone,
My apology if this is a too trivial question (I searched the forum but didn't find my answer)!
I have some areas that are only accessible by a certain group. Now if a user of that group logs out while accessing those areas (logs out without going to the home page first) then immediate after logging out, the site doesn't redirect to the home page automatically instead it displays a message "Warning! You are not authorized to view this resource...You need to login.." (see the attached screenshot)
I was wondering if there's a way to redirect automatically to the home page after someone logs out.
Thank you.
[attachment deleted by admin]
-
Elxis 2008 redirects you to the same page as long as that page is available and your menu settings tells Elxis that this page is also available for the logged out users too. You have set up your menu items wrong.
If you want to always get re-directed to the front-page open index.php and index2.php files and modify the red coloured lines:
} else if ($option == 'logout') {
.......
if ($return) {
mosRedirect( $return );
} else {
mosRedirect( 'index.php' );
}
Leave only this:
mosRedirect( 'index.php' );
-
Problem solved...Thank you datahell :)