• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to use $this->session->set_userdata in codeigniter

phpcodeignitersessioncontinuous-integration


PHP Snippet 1:

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

PHP Snippet 2:

$this->session->set_userdata($data);

PHP Snippet 3:

$data = array(
  'email'           => $row->email,
  'level_id'        => $row->level_id,
  'id_subunit'      => $row->id_subunit
);

Related Snippets

How to create laravel storage symbolic link for production or sub domain system?

Limit of log line written to Apache Errorlog from mod php error_log

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Add a custom text for a particular product on specific email notification in Woocommerce

could not find driver Debian SQL Server PHP

Laravel 5.5 change unauthenticated login redirect url

Input and output values for php into the browser?

No result using makeStyles Material UI in react 18

CodeIgniter 3 is generating a session file on each request, why?

How to convert the int value to inch in PHP [closed]

If you intend you use SMTP, add your SMTP Code after this Line

Unable to get password for the instance created from AMI

Destroy session upon refresh

PhP how to calculate moments with variables rows

auth pages not getting css in laravel

About Contact Privacy policy Terms and conditions