17

That should work fine, but you can also check the REQ constant (docs) which has the following possible values: CP - Control panel requests PAGE - Frontend template requests ACTION - Module actions, e.g. mysite.com/?ACT=123 For example: if (REQ == 'CP') { return FALSE; }


4

Wanted to share this here because I figured it would help others debug in the future. The problem is with the Zoo Visitor extension- it's the session_start() function right at the beginning of the file. The server chokes on it- it also chokes on the example from the PHP docs in a completely standalone form. So my suggestion was to take it to the server ...


2

Like MJR suggest, set a javascript timer to about the same length as the logout / session-expiration timer. Then redirect after timeout. The elegant part: Around 20 or 30 secs before expiration, popup a dialog that the session is about to expire. (maybe redirect to a page where the user is going to be logged out, to prevent redirecting without the session ...


1

Although the hook doesn't provide any information you can use, you could do a query on the exp_members table where ip_address is equal to the users ip, and sort the results by last_activity descending. Logging out should record the timestamp into the last_activity field and the ip address is updated every time a member logs in. As a result, this should then ...


Only top voted, non community-wiki answers of a minimum length are eligible