Skip to content

Commit

Permalink
Updating core.php with new Session.model configuration directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperras committed Apr 15, 2009
1 parent 75f303f commit 5d183cb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/config/core.php
Expand Up @@ -96,16 +96,30 @@
* To define a custom session handler, save it at /app/config/<name>.php. * To define a custom session handler, save it at /app/config/<name>.php.
* Set the value of 'Session.save' to <name> to utilize it in CakePHP. * Set the value of 'Session.save' to <name> to utilize it in CakePHP.
* *
* To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql. * To use database sessions, run the app/config/schema/sessions.php schema using
* the cake shell command: cake schema run create Sessions
* *
*/ */
Configure::write('Session.save', 'php'); Configure::write('Session.save', 'php');
/**
* The model name to be used for the session model.
*
* 'Session.save' must be set to 'database' in order to utilize this constant.
*
* The model name set here should *not* be used elsewhere in your application.
*/
//Configure::write('Session.model', 'Session');
/** /**
* The name of the table used to store CakePHP database sessions. * The name of the table used to store CakePHP database sessions.
* *
* 'Session.save' must be set to 'database' in order to utilize this constant. * 'Session.save' must be set to 'database' in order to utilize this constant.
* *
* The table name set here should *not* include any table prefix defined elsewhere. * The table name set here should *not* include any table prefix defined elsewhere.
*
* Please note that if you set a value for Session.model (above), any value set for
* Session.table will be ignored.
*
* [Note: Session.table is deprecated as of CakePHP 1.3]
*/ */
//Configure::write('Session.table', 'cake_sessions'); //Configure::write('Session.table', 'cake_sessions');
/** /**
Expand Down

0 comments on commit 5d183cb

Please sign in to comment.