diff options
author | admin <devnull@localhost> | 2006-09-17 20:47:00 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-17 20:47:00 +0200 |
commit | 990e3c6c79f68a396cd39fc99e798bc4333a3afc (patch) | |
tree | 5aed2d6e36097f5be9b98b94da6dfc86888d1574 /user_guide/libraries/sessions.html | |
parent | b68745e494773bce023c9a7eaca672e32beb1a47 (diff) |
Diffstat (limited to 'user_guide/libraries/sessions.html')
-rw-r--r-- | user_guide/libraries/sessions.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/user_guide/libraries/sessions.html b/user_guide/libraries/sessions.html index 1050e1102..f8549a5c9 100644 --- a/user_guide/libraries/sessions.html +++ b/user_guide/libraries/sessions.html @@ -183,7 +183,7 @@ query is performed to match it. If the session ID does not match, the session i be updated, they can only be generated when a new session is created.</p>
<p>In order to store sessions, you must first create a database table for this purpose. Here is the basic
-prototype required by the session class:</p>
+prototype (for MySQL) required by the session class:</p>
<textarea class="textarea" style="width:100%" cols="50" rows="8">
CREATE TABLE IF NOT EXISTS `ci_sessions` (
@@ -202,6 +202,14 @@ Once you have created your database table you can enable the database option in <p>Once enabled, the Session class will store session data in the DB.</p>
+<p>Make sure you've specified the table name in your config file as well:</p>
+
+<code>$config['sess_table_name'] = 'ci_sessions";</code>
+
+<p class="important"><strong>Note:</strong> The Session class has built-in garbage collection which clears out expired sessions so you
+do not need to write your own routine to do it.</p>
+
+
<h2>Session Preferences</h2>
<p>You'll find the following Session related preferences in your <kbd>application/config/config.php</kbd> file:</p>
|