Welcome Guest, Not a member yet? Register   Sign In
Session Data lost when redirect to a view
#4

In CI, you can't redirect to a view.
A view is loaded inside a controller function.
If you redirect to another controller/function that doesn't load the session library, your session data is lost.
That's why it's good practice to autoload the session library in application/config/autoload.php once you decide to use session data.
Reply


Messages In This Thread
RE: Session Data lost when redirect to a view - by Wouter60 - 06-19-2017, 10:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB