Hello
I need a script that will logout a user from his account after 10 minutes [let's say]. So it needs to redirect the user after those 10 minute to a logout.php page...
I made a small script in jQuery that sends [through] POST the current time and based on a time stored in a SESSION variable it shows to the user how much time he has, and after the time is "ended" the SESSION logout variable is set to 1, but I cannot refresh the page so that the settings take place
can anyone help me?
I tried with:
<php> --> header("Location: index.php");
it's not working because the headers were already sent
<JS> --> window.location = "index.php";
it's not working...  [or I'm not using it where I should use it...]
|