Commit cd9c4fda authored by Carsten  Rose's avatar Carsten Rose
Browse files

SIP invalid: it seems that again more SIPs become invalid without known...

SIP invalid: it seems that again more SIPs become invalid without known reason. Recoded Store, not to use Session Class - instead $_SESSION is used direct.
Session.php: exception commented
Store.php: recode accessing $_SESSION.
parent 55d50e6c
......@@ -64,6 +64,9 @@ class Session {
// save new feUserUid, feUserName
Session::set(SESSION_FE_USER_UID, $feUidLoggedIn);
Session::set(SESSION_FE_USER, $feUserSession);
// throw new UserFormException("FYI: Session has been cleared. Reload this page. ".
// "feUserUidSession:'$feUserUidSession', feUserSession:'$feUserSession' isset(TSFE):'" . isset($GLOBALS["TSFE"]) ? 'true' : 'false' );
}
}
......
......@@ -17,7 +17,7 @@ require_once(__DIR__ . '/../../qfq/helper/KeyValueStringParser.php');
require_once(__DIR__ . '/../../qfq/helper/Sanitize.php');
require_once(__DIR__ . '/../../qfq/Constants.php');
require_once(__DIR__ . '/../../qfq/store/Sip.php');
require_once(__DIR__ . '/../../qfq/store/Session.php');
//require_once(__DIR__ . '/../../qfq/store/Session.php');
require_once(__DIR__ . '/../../qfq/Database.php');
......@@ -49,7 +49,7 @@ class Store {
/**
* @var Session Instance of class Session
*/
private static $session = null;
// private static $session = null;
/**
* @var array Stores all indiviudal stores with the variable raw values
......@@ -85,7 +85,7 @@ class Store {
*/
private function __construct($bodytext = '') {
self::$session = Session::getInstance(self::$phpUnit);
// self::$session = Session::getInstance(self::$phpUnit);
self::$sanitizeClass = [
// TYPO3_DEBUG_LOAD => SANITIZE_ALLOW_DIGIT,
......@@ -291,11 +291,11 @@ class Store {
}
} else {
// NO T3 environment (called by API): restore from SESSION
if (false !== ($feUser = self::$session->get(SESSION_FE_USER))) {
$arr[TYPO3_FE_USER] = $feUser;
if (isset($_SESSION[SESSION_NAME][SESSION_FE_USER])) {
$arr[TYPO3_FE_USER] = $_SESSION[SESSION_NAME][SESSION_FE_USER];
}
if (false !== ($feUserUid = self::$session->get(SESSION_FE_USER_UID))) {
$arr[TYPO3_FE_USER_UID] = $feUserUid;
if (isset($_SESSION[SESSION_NAME][SESSION_FE_USER_UID])) {
$arr[TYPO3_FE_USER_UID] = $_SESSION[SESSION_NAME][SESSION_FE_USER_UID];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment