• 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

PHPExcel export HTML table to xlsx

Call to a member function givePermissionTo() on null

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

Laravel Factory not calling callback 'afterCreating'

Php - Sum up the numbers in an array one by one

How to unlink image from folder?

Refresh specific HTML content that retrieves data from MySQL

PHP - Store information with NO database

Display the WooCommerce product price inside a custom function

Laravel Database Strict Mode

PHP Download MP3 files from directory on server

How to delete old images from public folder on update using Laravel

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Smarty if isset

Getting public posts of a random user from Facebook API

About Contact Privacy policy Terms and conditions