[eluser]babai[/eluser]
I want to store the session in Array.
Now session are storing by default into CI_Session Object. Actual I have print ( print_r($this->session); ) the session and getting the result. See the example
CI_Session Object
(
[now] => 1216134421
[encryption] =>
[use_database] => 1
[session_table] => ci_sessions
[sess_length] => 1800
[sess_cookie] => ci_session
[userdata] => Array
(
[username] => sudip
[user_id] => 1
[full_name] => Sudip Samanta
[power_user] => y
[s_home_dir] => .
[twg_permissions] => 7
[upload_settings] => 15
[mywebgallerie_login] => ok
[s_user] => admin
[admin_lang] => en
)
}
But I want to store some session data into an Array. Means I want to split the previous example into 2 parts. See the example
1.
CI_Session Object
(
[now] => 1216134421
[encryption] =>
[use_database] => 1
[session_table] => ci_sessions
[sess_length] => 1800
[sess_cookie] => ci_session
[userdata] => Array
(
[username] => sudip
[user_id] => 1
[full_name] => Sudip Samanta
[power_user] => y
)
}
2.
Array
(
[s_home_dir] => .
[twg_permissions] => 7
[upload_settings] => 15
[mywebgallerie_login] => ok
[s_user] => admin
[admin_lang] => en
}
Is it possible? If it is possible so how to store into the session. Now I am using
'$this->session->set_userdata('admin_lang', 'en')'.