How to create custom session using codeigniter

Hi all,
I want to make a session with codeigniter. But i want to add the field such as session_host and session_page from the existing session table, which aims to know the hostname of the visitor and any pages that have been visited by visitors. My question is, how to create custom session using codeigniter? Do I need to change the session files in a library? Or is there any configuration should I add?
i have made table ci_sessions
Field Name
user_host => hostname from the visitors
session_page => the page has been clicked by visitors
Please help me!!


[eluser]Thorpe Obazee[/eluser]
$this->session->set_userdata('session_host', 'value');
$this->session->set_userdata('session_page', 'value');

You don't need to change anything in the config or the Session Library.

Where that codes should I put?

[eluser]Bart v B[/eluser]
[quote author="senz" date="1272550846"]Where that codes should I put?[/quote]

In youre Controller or model, where you need to change the session Wink

Check out the user guide:

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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