how to set two session in a project |
[eluser]Sawariya[/eluser]
Hi Guys I need two session in my project.. -------- Session one for user authentication -------- session two for store examination details... How to do this.. Anybody can help me.. Thanks in advance
[eluser]Michael Wales[/eluser]
Code: $this->session->userdata(array('session1'=>'data')); You don't need 2 sessions, you need 2 session variables.
[eluser]Lone[/eluser]
Why use two seperate sessions? You could just use two different variables for the session eg. Code: // set user details
[eluser]Lone[/eluser]
In case your wondering who Mista Dobalina is... http://au.youtube.com/watch?v=5UlAqjUu_TA Warning - gets stuck in head easily
[eluser]Sawariya[/eluser]
thanks for your reply... These information will be destroyed from session while logout state.. Only authentication details should destroy while perfom logout.. how it possible..
[eluser]Pascal Kriete[/eluser]
Code: $this->session->unset_userdata('logged_in');
[eluser]stuffradio[/eluser]
[quote author="geshan" date="1213184243"]this does not work...[/quote] How so? |
Welcome Guest, Not a member yet? Register Sign In |