title: Cakephp database session
body: <p>I am trying to configure database session, so I added these lines to app.php</p>
  <pre><code>'Session' =&gt; [
          'defaults' =&gt; 'database',
          'timeout'  =&gt; 8032, 
          'cookieTimeout' =&gt; 10 * 8032, 
      ],
  </code></pre>
  <p>And I have created the database table:</p>
  <pre><code>CREATE TABLE `sessions` ( 
    `id` char(40) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, 
    `created` datetime DEFAULT CURRENT_TIMESTAMP, -- optional, requires MySQL 5.6.5+ 
    `modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- optional, requires MySQL 5.6.5+ 
    `data` blob DEFAULT NULL, -- for PostgreSQL use bytea instead of blob 
    `expires` int(10) unsigned 
    DEFAULT NULL, 
    PRIMARY KEY (`id`) 
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  </code></pre>
  <p>But I still get this error:</p>
  <blockquote>
  <p>Fatal error: [Cake\ORM\Exception\MissingTableClassException] Table class for alias <code>Sessions</code> could not be found</p>
  </blockquote>
  <p>What am I doing wrong?</p>
  <p><em><strong>MORE INFORMATION</strong></em></p>
  <p>CAKEPHP VERSION: 4.2.3</p>
  <p>StackTrace</p>
  <pre><code>[Cake\ORM\Exception\MissingTableClassException] Table class for alias `Sessions` could not be found. (/var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php:245) #0 
  /var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/src/Datasource/Locator/AbstractLocator.php(62): Cake\ORM\Locator\TableLocator-&gt;createInstance('Sessions', Array) 
  #1 /var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php(205): Cake\Datasource\Locator\AbstractLocator-&gt;get('Sessions', Array) 
  #2 /var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/src/Http/Session/DatabaseSession.php(62): Cake\ORM\Locator\TableLocator-&gt;get('Sessions', Array) 
  #3 /var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/src/Http/Session.php(274): Cake\Http\Session\DatabaseSession-&gt;__construct(Array) 
  #4 /var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/sr in /var/www/vhosts/domain/ShopManagment/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 196
  </code></pre>