Welcome Guest, Not a member yet? Register   Sign In
Session last_activity update?
#1

[eluser]AndrewMalachel[/eluser]
Hi,

I'm a newbie from Indonesia, so I'm sorry if my english is poor... :red:

I'd tried to create a login form with session (with database), and after someone is log
in, the session will continue to update the last_activity field until he is not active
for (default: ) 5 minutes or he logged out.

The problems I had is within 5 minutes after someone was login, the session_id change
and since I use the session_id for security reason, he was forced to logout.

I'd tried to manually update the last_activity, using
$this->session->userdata('last_activity')
but when I see the database session, the last_activity field is remain the same,
and still after 5 minutes the session_id is changed.

I'd also tried
$this->session->sess_update()
but now the session_id is changing
everytime the page is reloaded.

Can any one help me??
oh, I forgot.. FYI, since it still in development environment, I use:
-CodeIgniter 1.6.3,
-Apache 2.2.9,
-MySQL 5.0.67,
-PHP 5.2.6
(last three from XAMPP 1.6.8)

thank you...




Theme © iAndrew 2016 - Forum software by © MyBB