Welcome Guest, Not a member yet? Register   Sign In
Session hook
#1

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.
Reply
#2

It's already been down, search google and the forums.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB