Welcome Guest, Not a member yet? Register   Sign In
variable between controllers
#1

[eluser]Avril[/eluser]
Hello,

I have made a simple login library that's being called from a login controller, if the check in the library is TRUE then the login controller will redirect the user to a members only area where they should see their "personal" details like first name, last name etc ... .

Now when I redirect the user to the member only area no variable is send to that other controller. Since they use a form to log in I can't get the data from the form because the form calls the login controller, so there should be a way to store somewhere some data like username, first name, last name etc ... so that I access it from the member area controller.

Is there a way to retrieve that data? Session data in database perhaps? Or is there a simpler way?
#2

[eluser]InsiteFX[/eluser]
You could use a MY_Controller or flash_data

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB