Session problem when upgrade 2.x to 3.0.x |
Excuse me, everyone. I met an issues and need all your helps.
I upgraded CI from 2.1.4 to 3.0.1 and Session makes me crazy. I implemented "Remember me" function with the below code in CI 2.1.4. Code: if ($remember) { After upgrading to 3.0.1, the sess_update() function has been removed from Session class. Therefore, the error occurs. Of course the error does not appear in case I comment Code: $this->session->sess_update(); I have searching for a while but cannot see the equivalent function for Code: sess_update(); Does anyone has ideas about it. Thanks and regards!
Did you try it without the sess_update() call? As far as I can tell, it should no longer be necessary.
What do you means, mwhitney? Which function I could use without the sess_update()?
Just take sess_update() out of your code (it's no longer a valid function anyway) and see if your code works properly without it.
If you really need similar functionality to sess_update(), the closest thing I can think of is sess_regenerate().
Thanks for your response, mwhitney.
As I described above, when I took sess_update() out of my code, It runs without errors but my function "Remember me" failed. I set Code: $config['sess_expiration'] = 0; Code: $remember
|
Welcome Guest, Not a member yet? Register Sign In |