Modify ↓
Opened 11 years ago
Closed 11 years ago
#514 closed Aufgabe (fixed)
ini_get() statt get_ini_var() in sessions.php
| Reported by: | Volker Strähle | Owned by: | somebody |
|---|---|---|---|
| Priority: | niedrig | Milestone: | modified-shop-2.0.0.0 |
| Component: | Admin | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
wegen Thread (http://www.modified-shop.org/forum/index.php?topic=33072.0) mein Vorschlag für eine kleine Änderung in includes/functions/sessions.php:
define('SESSION_LIFE_ADMIN_DEFAULT', 7200);
@ini_set("session.gc_maxlifetime", 1440);
@ini_set("session.gc_probability", 100);
@ini_set('session.cookie_httponly', true);
function xtc_get_cfg_var($ini_option){
try {
$ini_option_value = get_cfg_var($ini_option);
} catch (Exception $e) {
$ini_option_value = ini_get($ini_option);
trigger_error($e->getMessage(), E_WARNING );
}
return $ini_option_value;
}
if (STORE_SESSIONS == 'mysql') {
// if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
if (!$SESS_LIFE = xtc_get_cfg_var('session.gc_maxlifetime')) {
$SESS_LIFE = 1440;
}
Attachments (0)
Note:
See TracTickets
for help on using tickets.

In 8278: