CI ver 1.7 problem,anyone can help me? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI ver 1.7 problem,anyone can help me? (/showthread.php?tid=13586) |
CI ver 1.7 problem,anyone can help me? - El Forum - 11-28-2008 [eluser]chmod[/eluser] I use CI 1.6.1 at last three months.Now I use CI 1.7,and the problem is remaining which is CI's session problem. When I change config.php like this: Code: $config['sess_cookie_name'] = 'ci_session'; and I want to use CI's db-session to login,and when session expired timeout OR CLOSE THE BROWSER,I want the user redirect to login page. Using name and password login,and then I have logined.but I refresh the browser,I found that: each fresh bind each new sesion_id. and the new session_id has been regenerated and saved in table. When I closed the browser and wait for 10s,and I access last page.I found new session_id has regenerated but not need to login . Controller: mycenter.php Code: <?php Modelecurity_model.php Code: <?php the CI 1.7 user doc said: Note: The Session class has built-in garbage collection which clears out expired sessions so you do not need to write your own routine to do it. But I found the session_id which has expired not be removed by ci.Why? Is any wrong with me ? when the browser close, the session_id was still being the ci_sessions table. how can I make a user to login? |