Closed (fixed)
Project:
Automated Logout
Version:
6.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2011 at 01:01 UTC
Updated:
5 Jun 2013 at 19:20 UTC
Hi,
My site has video upload and some files are big and take too much time to upload.
How can i avoid the logout for a user at an admin page AND uploading?
thanks
Comments
Comment #1
svnindia commentedAny Solutions found for this...
Comment #2
svnindia commentedIn the custom module hook_init() by updating
$_SESSION['lastaccess'] = time();based on some condition can solve our issue...Comment #3
johnennew commentedThe 7.x-4.x and 6.x-4.x branches now provide two hooks other's can use for preventing logout.
read the autologout.api.php file in the latest development branches for exact details but simply hook_autologout_prevent() can be used to not include the autologout js from being included (useful for ajax callbacks) and hook_autologout_refresh_only includes the JS which will keep the session active whist the user is on that page.
To implement in your own module you might use:
Comment #4
johnennew commentedsetting to fixed - reopen if you'd like to discuss further.