Skip to content
saturngod edited this page Feb 12, 2012 · 1 revision

#Session

Load Session

recommend to autoload at config.php

$this->load->library('session');

Start Session

$this->session->start();

You can also use with session_name

$this->session->start("session_name");

SET session

$session_data['name']='testing';
$session_data['id']=12;
$session_data['place']="sample";

$this->session->set($session_data);

GET session

echo $this->session->get('name');

Destory

$this->session->destory();

UNSET

$this->session->_unset("name");

Clone this wiki locally