summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-01 00:35:34 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-01 00:35:34 +0100
commite2afc886d5e7fe1d55a467c9bc46fe40c1a2bbf6 (patch)
treeb05d45c6a42c418f1de3f2ad3e6054d516825ed6 /user_guide_src
parent87f4dc27230debc0af281c9780f2ba939fe07608 (diff)
Session cookie driver changes
- Changed docs CREATE TABLE ci_sessions example to have the PRIMARY KEY of session_id, ip_address and user_agent combined. - Changed DB updates to add WHERE clauses for the ip_address and/or user_agent strings if sess_match_ip and/or sess_match_useragent are set to TRUE.
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/libraries/sessions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/sessions.rst b/user_guide_src/source/libraries/sessions.rst
index dd9e8cbb4..ee7fb0b1c 100644
--- a/user_guide_src/source/libraries/sessions.rst
+++ b/user_guide_src/source/libraries/sessions.rst
@@ -388,7 +388,7 @@ session class::
user_agent varchar(120) NOT NULL,
last_activity int(10) unsigned DEFAULT 0 NOT NULL,
user_data text NOT NULL,
- PRIMARY KEY (session_id),
+ PRIMARY KEY (session_id, ip_address, user_agent),
KEY `last_activity_idx` (`last_activity`)
);