Happens when checking the box "Invalidate all user sessions"

the line 177
authcache_user('login', $edit = NULL, $user);
should be
authcache_user_login($edit = NULL, $user);
??
see attached patch

CommentFileSizeAuthor
#1 authcache_invalidate.patch847 bytesstred

Comments

stred’s picture

StatusFileSize
new847 bytes

here is the patch

stred’s picture

another problem, the authcache.js is not included form authcache_init
why not simply call
drupal_add_js(drupal_get_path('module', 'authcache') .'/authcache.js');
?
and in authcache.js $.cookie must be replaced by jQuery.cookie

jeanj’s picture

... yes, same with me - on my site the debug function is not working.

I looked throught the source code and found that for both scripts (authcache.js, authcache_debug.js), the function drupal_add_js(dirname(__FILE__) created a path like http:\\mydomain.com\myinternal_path\somejavascript.js ... which will not work. As a quick fix, I hard coded the correct path, but still no cookie is set ...

stred’s picture

require_once is broken as well on line 37 in authcache.inc
should be
require_once drupal_get_path('module', 'authcache') .'/ajax/authcache.php';

socialnicheguru’s picture

for the first patch, i get this on the 7.x march 2012 dev release

m/all/authcache$ git apply *patch
authcache_invalidate.patch:8: trailing whitespace.
$num_deleted = db_delete('sessions')
authcache_invalidate.patch:14: trailing whitespace.
authcache_user_login($edit = NULL, $user);
authcache_invalidate.patch:15: trailing whitespace.
drupal_set_message(t('%num user sessions have been invalidated.', array('%num' => $num_deleted)));
error: patch failed: authcache.admin.inc:170
error: authcache.admin.inc: patch does not apply

simg’s picture

Thanks guys. Apologies for the delay in responding, for some reason Authcache issues aren't appearing on my d.o homepage, so there I was happily believing there was zero issues and (zero interest) in Authcache D7.

Patch applied to the dev version along with issues raised in #2 #4

I'm not ( yet! :) ) a Drupal core guru by any stretch, so your assistance / patience is greatly appreciated :)

simg’s picture

Status: Needs review » Closed (fixed)