1 ; Enable session_mysql extension module
2 extension=session_mysql.so
4 ; To enable this module globally:
5 ;session.save_handler = "mysql"
7 ; You can additionaly use sock and port
8 ;session_mysql.db="host=localhost db=phpsession user=phpsession pass=phpsession"
10 ; when inserting, retreiving and deleting session from database, add a check
11 ; for $_SERVER['SERVER_NAME'] this disables potential security problem (when
12 ; used in mass virtualhosting), because users cannot edit session for other
13 ; domains $_SERVER['SERVER_NAME'] is copied to local variable before script is
14 ; executed, so when users change $_SERVER['SERVER_NAME'] variable, it does not
16 ;session_mysql.hostcheck="1"
18 ; remove "www." if exist from $_SERVER['SERVER_NAME'], so same session on
19 ; www.example.com and example.com will work
20 ;session_mysql.hostcheck_removewww="1"
22 ; use persistent connection to mysql (every 1 httpd process will use 1
23 ; connection to mysql)
24 ;session_mysql.persistent="1"
26 ; remove sessions older than 21600 seconds when GC (garbage collector) is waked
27 ;session_mysql.gc_maxlifetime="21600"
29 ; locking support via GET_LOCK()/RELEASE_LOCK(), for more information read this
30 ; http://www.issociate.de/board/post/184369/warning_&_question_about_mysql_sessions_&_concurrency.html
31 ;session_mysql.locking="1"
33 ; lock timeout, default 5 seconds
34 ;session_mysql.lock_timeout="5"
36 ; when set to 1, return always SUCCESSFUL, so upper session functions don't log really anything
37 ;session_mysql.quiet="0"