Welcome Guest, Not a member yet? Register   Sign In
Undefined Variable _SESSION
#1

[eluser]MydKnight[/eluser]
I have warnings turned on, and this one identifies as merely a notice, but I wanted to be sure I wasn't doing anything wrong here. When I load the page I get the following:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: _SESSION

Filename: controllers/welcome.php

Line Number: 40

This is the code block that is causing it:

function verify()
{
if ($this->input->post('username')){
$u = $this->input->post('username');
$pw = $this->input->post('password');
$this->m_user->verifyUser($u,$pw);
if ($_SESSION['userid'] > 0){
redirect('index','refresh');
}
}
$data['main'] = 'login';
$data['title'] = "Login Page";
$data['navlist'] = array(
'home' => 'Home'
);
$this->load->vars($data);
$this->load->view('abctemplate',$data);
}

Do I have anything to be worried about?


Messages In This Thread
Undefined Variable _SESSION - by El Forum - 07-01-2009, 10:36 AM
Undefined Variable _SESSION - by El Forum - 07-01-2009, 10:47 AM
Undefined Variable _SESSION - by El Forum - 07-01-2009, 04:54 PM
Undefined Variable _SESSION - by El Forum - 08-06-2009, 12:52 PM
Undefined Variable _SESSION - by El Forum - 08-06-2009, 08:48 PM
Undefined Variable _SESSION - by El Forum - 08-06-2009, 09:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB