Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


Trick to redirect at end of session
Date: 2006/10/06 16:02 By: jfbertrand Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login