Welcome Guest, Not a member yet? Register   Sign In
session problem when called from other modules.
#1

[eluser]bijufun[/eluser]
When i try to call

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Invoice extends CI_Controller {

function __construct()
{
parent::__construct();
$this->load->model('invoice_model');
modules::run('login/is_logged_in');
}
?>

When i validate user and assigned session. I get no error.
But once i redirect to the other page ( even same login controller), session is not more stored.

I get error in this line :
$is_logged_in = $this->session->userdata('is_logged_in');

---------------------------------------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Login::$session

Filename: controllers/login.php

Line Number: 110
----------------------------------------------------------------------

I am using code igniter 2.0 with HMVC ..

Thank you in advance :-)
#2

[eluser]wiredesignz[/eluser]
Go back and read the Modular Extensions HMVC Bitbucket wiki. Take note of the difference between Modular Separation and Modular Extensions HMVC
#3

[eluser]bijufun[/eluser]
thanx for the reply.. Actually I had set session['domain'].
When i remove the value, it seems working fine..




Theme © iAndrew 2016 - Forum software by © MyBB