]> git.pld-linux.org Git - packages/php-pecl-session_mysql.git/commitdiff
- default ini config
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 12 Jun 2006 12:47:49 +0000 (12:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-session_mysql.ini -> 1.1

php-pecl-session_mysql.ini [new file with mode: 0644]

diff --git a/php-pecl-session_mysql.ini b/php-pecl-session_mysql.ini
new file mode 100644 (file)
index 0000000..c72ac25
--- /dev/null
@@ -0,0 +1,37 @@
+; Enable session_mysql extension module
+extension=session_mysql.so
+
+; To enable this module globally:
+;session.save_handler = "mysql"
+
+; You can additionaly use sock and port
+session_mysql.db="host=localhost db=phpsession user=phpsession pass=phpsession"
+
+; when inserting, retreiving and deleting session from database, add a check
+; for $_SERVER['SERVER_NAME'] this disables potential security problem (when
+; used in mass virtualhosting), because users cannot edit session for other
+; domains $_SERVER['SERVER_NAME'] is copied to local variable before script is
+; executed, so when users change $_SERVER['SERVER_NAME'] variable, it does not
+; hurt
+session_mysql.hostcheck="1"
+
+; remove "www." if exist from $_SERVER['SERVER_NAME'], so same session on
+; www.example.com and example.com will work
+session_mysql.hostcheck_removewww="1"
+
+; use persistent connection to mysql (every 1 httpd process will use 1
+; connection to mysql)
+session_mysql.persistent="1"
+
+; remove sessions older than 21600 seconds when GC (garbage collector) is waked
+session_mysql.gc_maxlifetime="21600"
+
+; locking support via GET_LOCK()/RELEASE_LOCK(), for more information read this
+; http://www.issociate.de/board/post/184369/warning_&_question_about_mysql_sessions_&_concurrency.html
+session_mysql.locking="1"
+
+; lock timeout, default 5 seconds
+session_mysql.lock_timeout="5" 
+
+; when set to 1, return always SUCCESSFUL, so upper session functions dont log really anything
+session_mysql.quiet="0"
This page took 0.094431 seconds and 4 git commands to generate.