CodeIgniter Forums
Session hook - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forum-11.html)
+--- Thread: Session hook (/thread-69711.html)



Session hook - Wertos - 01-09-2018

Good evening. Sorry for my English !
Prompt, whether it is possible what to write in a field "date" in the table "sessions" the useragent ? I wanted to write a widget "Who is online"
CI version - 3.1-stable git.


RE: Session hook - InsiteFX - 01-10-2018

It's already been down, search google and the forums.


RE: Session hook - Wertos - 01-10-2018

PHP Code:
$data = [  
    
'useragent' => $this->agent->agent_string()  
];  
  
$this
->session->set_userdata('user'$data);   
With this I figured out. But still took a class of sessions from CI2
Probably decided.