CodeIgniter Forums
codeigniter session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: codeigniter session (/thread-53594.html)



codeigniter session - El Forum - 07-30-2012

[eluser]global_erp_solution[/eluser]
I'm creating a form to autenticate users. Now, in many tutorials there are two different approach. Some are using $this->session
Code:
$this->session->userdata('user');

while others use:
Code:
$CI =& get_instance();
$CI->session->userdata('user');

what's the difference between these two? any different effect or consequence for using each one? thanks.


codeigniter session - El Forum - 07-30-2012

[eluser]Aken[/eluser]
Why are you asking this question again?

http://ellislab.com/forums/viewthread/221304/


codeigniter session - El Forum - 07-30-2012

[eluser]global_erp_solution[/eluser]
oh yes, I forgot I asked this before. Please delete this thread. thanks