CodeIgniter Forums
Can't use sessions with HMVC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Can't use sessions with HMVC (/showthread.php?tid=36968)



Can't use sessions with HMVC - El Forum - 12-21-2010

[eluser]Unknown[/eluser]
Hi,

I've just started using the HMVC, everything works perfect, but when I try to use $this->session->adminlogged, I get:

Code:
Call to undefined method CI_Session::adminlogged()

Even though I have autoloaded the session library, and I have also tried loading the library within the controller. Urgent help is required Sad! Many Thanks


Can't use sessions with HMVC - El Forum - 12-22-2010

[eluser]WanWizard[/eluser]
The session library doesn't have a method called adminlogged(). What are you trying to call here?


Can't use sessions with HMVC - El Forum - 12-22-2010

[eluser]Unknown[/eluser]
ohh! I got it, so I have to use userdata all the times to check a session!! Thanks mate for the tip