return all user data from CI session |
[eluser]jayfox911[/eluser]
I added this function to the session.php in CI system libraries folder to return the session array. Code: /** Code: $this->load->library('session'); Code: print '<br/>Username: '. $session['username'];
[eluser]Crimp[/eluser]
Code: // --------------------------------------------------------------------
[eluser]jayfox911[/eluser]
[quote author="Crimp" date="1193783211"] Code: // -------------------------------------------------------------------- did you write this or is that part of CI. with mine I did not have the isset because the session array is alway populated during creation however the user can unset the session array. Thanks
[eluser]jayfox911[/eluser]
improvement, i was searching for a way to get thesession array and could not find a good answer. so i made a new function to do what i wanted.
[eluser]Derek Allard[/eluser]
The session class in the SVN has the code Crimp copied. You can grab a copy now and use it if you want. It also has flash vars, and there is some additional work being done on it.
[eluser]Crimp[/eluser]
Sorry, I thought it was simply an oversight by the author. I have used the SVN versions for updates for so long, I forget what came before... |
Welcome Guest, Not a member yet? Register Sign In |