In my login controller i have stored all user data in session. i have verified also by printing
all_userdata();
when redirected to another controller home the session was destroyed. please help me to solve this issue. The session data is as follows.
Array
(
[session_id] => 11c8450a10e6f944c97f13841ccea0c2
[ip_address] => 127.0.0.1
[user_agent] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36
[last_activity] => 1408779229
[user_data] =>
[id] => 432
[empid] => 1024
[username] =>
[email] => gvsvinayak@gmail.com
[fullname] => G V S Vinayak
[usertype] => staff
[logged_in] => 1
[access] => Array
(
[menu] => Array
(
[0] => Array
(
[menu_title] => Home
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 0
[id] => 1
)
[1] => Array
(
[menu_title] => Blocked Domains
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 0
[id] => 2
)
[2] => Array
(
[menu_title] => List of Companies
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 0
[id] => 3
)
[3] => Array
(
[menu_title] => Full Registrations
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 3
[id] => 4
)
[4] => Array
(
[menu_title] => Partial Registrations
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 3
[id] => 5
)
[5] => Array
(
[menu_title] => Staff
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 0
[id] => 6
)
[6] => Array
(
[menu_title] => Add Satff
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 6
[id] => 8
)
[7] => Array
(
[menu_title] => View All
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 6
[id] => 9
)
[8] => Array
(
[menu_title] => Cloud Instances
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 0
[id] => 7
)
[9] => Array
(
[menu_title] => Search
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[parent] => 0
[id] => 10
)
)
[companytabs] => Array
(
[0] => Array
(
[tab_name] => Company Profile
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 1
)
[1] => Array
(
[tab_name] => VM Details
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 2
)
[2] => Array
(
[tab_name] => Support
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 3
)
[3] => Array
(
[tab_name] => Monitors
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 4
)
[4] => Array
(
[tab_name] => Users
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 5
)
[5] => Array
(
[tab_name] => Orders
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 6
)
[6] => Array
(
[tab_name] => Invoices
[can_edit] => 1
[can_delete] => 1
[can_view] => 1
[id] => 7
)
)
)
)