Welcome Guest, Not a member yet? Register   Sign In
How does Ion Auth (or other auth libraries) handle "remember me" and codeigniter sessions?
#1

[eluser]Unknown[/eluser]
I am brand new to codeigniter and frameworks in general, and am wondering how Ion Auth handles sessions.

If I save the user's information to a session using Ion's built-in user() function to get their details, will the session variables be available for only 2 hours (the default session time), or will they automatically be renewed if the "remember me" function is enabled? To be more specific, I would do this to get the info:

Code:
$this->session->userdata[] = $this->ion_auth->user()->row();

So how does Ion Auth handle sessions? What do I need to know about the "remember me" feature? Unfortunately, the documentation for Ion Auth doesn't explain anything concerning this.

And lastly, would this be the proper method to use the user data in a Model? I need to make MySQL queries using the user_id in the WHERE clause, of course. Surely I shouldn't be passing this information to the model from the controller every time?

Thank you for your assistance.


Messages In This Thread
How does Ion Auth (or other auth libraries) handle "remember me" and codeigniter sessions? - by El Forum - 11-06-2012, 04:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB