Redirect difficulty - 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: Redirect difficulty (/showthread.php?tid=44407) |
Redirect difficulty - El Forum - 08-13-2011 [eluser]Gerep[/eluser] I have created a MY_Controller class to check for sessions. My LoginController is checking the user information and if that is ok, I redirect the user to the PainelController. I use redirect so my url will be refresh with /localhost/painel instead of /localhost/session/login The problem is that when I use redirect, I cannot access my session, only using load->view. Is there a workaround? Thanks in advance for any help. PS: I use a .htaccess, the one found on CI Wiki Redirect difficulty - El Forum - 08-13-2011 [eluser]OliverHR[/eluser] Please be a little bit more specific, are you tryng to send code after redirect?, because this certainly gonna throw you an error. Redirect difficulty - El Forum - 08-13-2011 [eluser]Gerep[/eluser] No code after redirect...just redirecting... Redirect difficulty - El Forum - 08-13-2011 [eluser]InsiteFX[/eluser] Autoload the session Library in application/config/autoload.php InsiteFX Redirect difficulty - El Forum - 08-14-2011 [eluser]OliverHR[/eluser] [quote author="Gerep" date="1313277897"] The problem is that when I use redirect, I cannot access my session, only using load->view. [/quote] Are you using CI session or PHP session? |