Ticket #506: 506-jSession-start-switch-in-config-file.diff
| File 506-jSession-start-switch-in-config-file.diff, 3.8 kB (added by Julien, 10 months ago) |
|---|
-
trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl
old new 145 145 146 146 147 147 [sessions] 148 ; to disable sessions, set the following parameter to 0 149 start = 1 148 150 ; You can change the session name by setting the following parameter (only accepts alpha-numeric chars) : 149 151 ; name = "mySessionName" 150 152 ; Use alternative storage engines for sessions -
trunk/lib/jelix/core/jSession.class.php
old new 26 26 */ 27 27 public static function start(){ 28 28 29 // do not start the session if the request is made from the command line 30 if($GLOBALS['gJCoord']->request instanceof jCmdLineRequest ){29 // do not start the session if the request is made from the command line or if sessions are disabled in configuration 30 if($GLOBALS['gJCoord']->request instanceof jCmdLineRequest || !$GLOBALS['gJConfig']->sessions['start']){ 31 31 return false; 32 32 } 33 33 -
trunk/lib/jelix/core/defaultconfig.ini.php
old new 200 200 enableAclDbEventListener = off 201 201 202 202 [sessions] 203 ; to disable sessions, set the following parameter to 0 204 start = 1 203 205 shared_session = off 204 206 ; You can change the session name by setting the following parameter (only accepts alpha-numeric chars) : 205 207 ; name = "mySessionName" -
branches/1.0.x/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl
old new 145 145 146 146 147 147 [sessions] 148 ; to disable sessions, set the following parameter to 0 149 start = 1 148 150 ; You can change the session name by setting the following parameter (only accepts alpha-numeric chars) : 149 151 ; name = "mySessionName" 150 152 ; Use alternative storage engines for sessions -
branches/1.0.x/lib/jelix/core/jSession.class.php
old new 26 26 */ 27 27 public static function start(){ 28 28 29 // do not start the session if the request is made from the command line 30 if($GLOBALS['gJCoord']->request instanceof jCmdLineRequest ){29 // do not start the session if the request is made from the command line or if sessions are disabled in configuration 30 if($GLOBALS['gJCoord']->request instanceof jCmdLineRequest || !$GLOBALS['gJConfig']->sessions['start']){ 31 31 return false; 32 32 } 33 33 -
branches/1.0.x/lib/jelix/core/defaultconfig.ini.php
old new 200 200 enableAclDbEventListener = off 201 201 202 202 [sessions] 203 ; to disable sessions, set the following parameter to 0 204 start = 1 203 205 shared_session = off 204 206 ; You can change the session name by setting the following parameter (only accepts alpha-numeric chars) : 205 207 ; name = "mySessionName"
