You are here

function authcache_test_session_counter in Authenticated User Page Caching (Authcache) 7.2

Open a session for anonymous users.

1 string reference to 'authcache_test_session_counter'
authcache_test_menu in tests/authcache_test.module
Implements hook_menu().

File

tests/authcache_test.module, line 291
Mock module to aid in testing authcache.module.

Code

function authcache_test_session_counter() {
  if (empty($_SESSION['authcache-test-count'])) {
    $_SESSION['authcache-test-count'] = 0;
  }
  print ++$_SESSION['authcache-test-count'];
  drupal_exit();
}