Welcome Guest, Not a member yet? Register   Sign In
Redirect difficulty
#1

[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
#2

[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.
#3

[eluser]Gerep[/eluser]
No code after redirect...just redirecting...
#4

[eluser]InsiteFX[/eluser]
Autoload the session Library in application/config/autoload.php

InsiteFX
#5

[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?




Theme © iAndrew 2016 - Forum software by © MyBB