Welcome Guest, Not a member yet? Register   Sign In
CI sessions and AJAX
#9

[eluser]vickel[/eluser]
Hi Ochetski, thanks for your time

what I want to do is to check if a user has been inactive for x seconds. In case of inactivity I show a warning dialog box, which will log out the user in case he is not responding.

what I have is an ajax rich application and CI framework. After logging into the aplication part of the website I'm loading only one view. In this view I have a javascript which checks every x-seconds how the value of the session cookie is. And there I have my problems. Maybe I'm checking the wrong way?

I use:

Code:
document.getElementById('txt2').value='<?=$this->session->userdata('last_activity')?>';

which should write the cookie value into a div with the id 'txt2'


Messages In This Thread
CI sessions and AJAX - by El Forum - 01-10-2011, 11:27 AM
CI sessions and AJAX - by El Forum - 01-10-2011, 11:34 AM
CI sessions and AJAX - by El Forum - 01-10-2011, 11:52 AM
CI sessions and AJAX - by El Forum - 01-10-2011, 11:59 AM
CI sessions and AJAX - by El Forum - 01-10-2011, 12:01 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 12:17 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 12:24 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 01:44 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 01:59 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 02:10 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 02:13 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 02:19 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 02:37 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 02:52 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 03:01 PM
CI sessions and AJAX - by El Forum - 01-10-2011, 03:04 PM
CI sessions and AJAX - by El Forum - 01-12-2011, 02:24 PM
CI sessions and AJAX - by El Forum - 01-12-2011, 03:34 PM
CI sessions and AJAX - by El Forum - 01-12-2011, 04:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB