• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 the CodeIgniter Community in 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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.