Trick to redirect at end of session

13 years 1 month ago #22164 by jfbertrand
Here is a little trick to get a redirect to login form on end of session or at any error message of you chosing... You might have to change the link to your login form page with your own...

//JF login redirect stuff
//./joomla
//./language
//./language.php lines : #23
//DEFINE('_NOT_AUTH','You are not authorized to view this resource.');
DEFINE('_NOT_AUTH','<script>window.location="index.php?option=com_content&task=view&id=57&Itemid=205&previous_url='.urlencode(mosGetParam( $_SERVER, 'REQUEST_URI', null )).'";</script>');
//+++++++
//./joomla
//./Modules
//./mod_cbloginrc2.php lines : #19
//$return = mosGetParam( $_SERVER, 'REQUEST_URI', null );
$return = urldecode(mosGetParam( $_REQUEST, 'previous_url', null ));
//and #32
//$login = $params->def( 'login', $return );
$login = $return;

Post edited by: jfbertrand, at: 2006/10/06 16:04
Moderators: beatnantkrileon
Time to create page: 0.380 seconds
Facebook Twitter Google LinkedIn