Welcome to the Cookbook

loading...

5.2.6.11 sessionKey

Name of the session array key where the record of the current authed user is stored.

Defaults to "Auth", so if unspecified, the record is stored in "Auth.{$userModel name}".

<?php
    $this->Auth->sessionKey = 'Authorized';
?>
  1. <?php
  2. $this->Auth->sessionKey = 'Authorized';
  3. ?>