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

Are you talking about an HTTP redirect, or are you just trying to access the session data in your views?

If you are talking about an HTTP redirect, you should redirect before setting the session data.

If you are just trying to access session data in your view, you can either use $this->load->vars(), or access the session data directly from the view. Another option is to use the second parameter of view(), and pass the session vars as an array.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB