[eluser]haraldo[/eluser]
OK,
For those who might be interested.
I added a pre_system hook that initialises a class where i do the following:
Code:
require_once 'system/application/libraries/Visitor.php';
class Session_initialise {
function __construct() {
session_start();
}
public function initiateVisitor() {
if ( !isset( $_SESSION['visitor'] ) ) {
$_SESSION['visitor'] = new Visitor();
}
}
}
This now allows the normal session implementation (the code in my first post that is commented out) to work.
For those of you who are seasoned codeignitors please let me know if i'm being a mong, and especially if there is a better way to do this.
Chears