Perbandingan Session di CodeIgniter vs PHP Manual

$this->session->set_userdata(array('id'=>'1','username'=>'agung')); //set session
$this->session->userdata('username'); // menggunakan session
$this->session->userdata('id');// menggunakan session

$_SESSION['id']='1'; //set session
$_SESSION['username']='Agung'; //set session
$_SESSION['id'];//menggunakan session
$_SESSION['username'] //menggunakan session

mana yang lebih simpel ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: