How redirect members who are already connected

Hello,

Here I want to redirect non-members to the page splash

but I want redirect members connected to page member.php

I tried to do something like that

 

if ((int)$_COOKIE['memberID'] == 1) {

header('Location: member.php');

}

 

But it does not work

Can you help me?

 

Free Dating Site on: http://coolonweb.com
Quote · 29 Nov 2010

Try as this:

 

if ( isLogged() ) {

header('Location: member.php');

}

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 29 Nov 2010

 

Thank you,

I made like this

 

<?php
require_once('inc/header.inc.php');
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );  //Retrieves the function isLogged
require_once( BX_DIRECTORY_PATH_INC . 'languages.inc.php');

if (isLogged() ) {
header('Location: member.php');
exit;
}

But it still does not work

 

Free Dating Site on: http://coolonweb.com
Quote · 29 Nov 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.