I want to know if there is any way to define custom fields in the sessions table of CodeIgniter.
By default, CodeIgniter stores session values in the following fields:
`session_id`,
`ip_address`,
`user_agent`,
`last_activity`,
`user_data`
What if I want to store a little more information in the sessions table using cookies? I mean, if I want to add username
and want to change the field name session_id
to SessionID
.
Is it possible to achieve that without too much effort??