rfe #1379201 [core] Add option to configure session_save_path.

This commit is contained in:
Michal Čihař
2010-01-22 17:46:55 +00:00
parent 58d31214a1
commit 7f9126fde9
4 changed files with 18 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- [browse] Properly display NULL value for BLOB.
- rfe #1516803 [edit] Allow to set BLOB to/from NULL with ProtectBinary.
- [edit] Do not default to UNHEX when using file upload.
- rfe #1379201 [core] Add option to configure session_save_path.
3.3.0.0 (not yet released)
+ rfe #2308632 [edit] Use hex for (var)binary fields,

View File

@@ -1297,6 +1297,10 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
This setting is used while importing/exporting dump files and in the
Synchronize feature but has no effect when PHP is running in safe mode.</dd>
<dt id="cfg_SessionSavePath">$cfg['SessionSavePath'] string</dt>
<dd>Path for storing session data (<a
href="http://php.net/session_save_path">session_save_path PHP parameter</a>).</dd>
<dt id="cfg_MemoryLimit">$cfg['MemoryLimit'] integer [number of bytes]</dt>
<dd>Set the number of bytes a script is allowed to allocate. If set
to zero, no limit is imposed.<br />

View File

@@ -535,6 +535,13 @@ $cfg['ForceSSL'] = false;
*/
$cfg['ExecTimeLimit'] = 300;
/**
* Path for storing session data (session_save_path PHP parameter).
*
* @global integer $cfg['SessionSavePath']
*/
$cfg['SessionSavePath'] = '';
/**
* maximum allocated bytes (0 for no limit)
*

View File

@@ -37,6 +37,12 @@ session_set_cookie_params(0, $GLOBALS['PMA_Config']->getCookiePath(),
// cookies are safer (use @ini_set() in case this function is disabled)
@ini_set('session.use_cookies', true);
// optionally set session_save_path
$path = $GLOBALS['PMA_Config']->get('SessionSavePath');
if (!empty($path)) {
session_save_path($path);
}
// but not all user allow cookies
@ini_set('session.use_only_cookies', false);
@ini_set('session.use_trans_sid', true);