OXID eShop CE
6.4.1
|
Public Member Functions | |
getId () | |
setId ($sVal) | |
setName ($sVal) | |
getForcedName () | |
getName () | |
start () | |
getRequestChallengeToken () | |
getSessionChallengeToken () | |
checkSessionChallenge () | |
initNewSession () | |
regenerateSessionId () | |
freeze () | |
destroy () | |
hasVariable ($name) | |
setVariable ($name, $value) | |
getVariable ($name) | |
deleteVariable ($name) | |
sid ($blForceSid=false) | |
hiddenSid () | |
getBasket () | |
setBasket ($oBasket) | |
delBasket () | |
isNewSession () | |
setForceNewSession () | |
isSidNeeded ($sUrl=null) | |
isActualSidInCookie () | |
processUrl ($sUrl) | |
getRemoteAccessToken ($blGenerateNew=true) | |
getBasketReservations () | |
isHeaderSent () | |
isSessionStarted () | |
Protected Member Functions | |
getSidFromRequest () | |
_initNewSessionChallenge () | |
_sessionStart () | |
_getNewSessionId ($blUnset=true) | |
isSerializedBasketValid ($serializedBasket) | |
isClassInSerializedObject ($serializedObject, $className) | |
isClassOrNullInSerializedObjectAfterField ($serializedObject, $fieldName, $className) | |
isUnserializedBasketValid ($basket, $emptyBasket) | |
_validateBasket (\OxidEsales\Eshop\Application\Model\Basket $oBasket) | |
_forceSessionStart () | |
_allowSessionStart () | |
_isSwappedClient () | |
_checkUserAgent ($sAgent, $sExistingAgent) | |
_checkCookies ($sCookieSid, $aSessCookieSetOnce) | |
_setSessionId ($sSessId) | |
_getBasketName () | |
_getCookieSid () | |
_getRequireSessionWithParams () | |
_isSessionRequiredAction () | |
_getSessionUseCookies () | |
_isValidRemoteAccessToken () | |
getShopUrlId () | |
needToSetHeaders () | |
sidToUrlEvent () | |
setSessionCookie ($sessionId) | |
Protected Attributes | |
$_sName = 'sid' | |
$_sForcedPrefix = 'force_' | |
$_sId = null | |
$_blNewSession = false | |
$_blForceNewSession = false | |
$_sErrorMsg = null | |
$_oBasket = null | |
$_oBasketReservations = null | |
$_blStarted = false | |
$_aRequireSessionWithParams | |
$_blSidNeeded = null | |
$_aPersistentParams = ["actshop", "lang", "currency", "language", "tpllanguage"] | |
Static Protected Attributes | |
static | $_blIsNewSession = false |
static | $_oUser = null |
Private Attributes | |
$orderControllers | |
Session manager. Performs session managing function, such as variables deletion, initialisation and other session functions.
|
protected |
Checks if we can start new session. Returns bool success status
|
protected |
Check for existing cookie. Cookie info is dropped from time to time.
string | $sCookieSid | coockie sid |
array | $aSessCookieSetOnce | if session cookie is set |
|
protected |
Checking user agent
string | $sAgent | current user agent |
string | $sExistingAgent | existing user agent |
|
protected |
Returns true if its not search engine and config option blForceSessionStart = 1/true or _GET parameter "su" (suggested user id) is set.
|
protected |
Returns name of shopping basket.
|
protected |
Returns cookie sid value
|
protected |
Update the current session id with a newly generated one, deletes the old associated session file, frees all session variables.
bool | $blUnset | if true, calls session_unset [optional] |
|
protected |
returns configuration array with info which parameters require session start
|
protected |
return cookies usage for sid possibilities
|
protected |
initialize new session challenge token
|
protected |
Tests if current action requires session
|
protected |
Saves various visitor parameters and compares with current data. Returns true if any change is detected. Using this method we can detect different visitor with same session id.
|
protected |
Checks if token supplied over 'rtoken' parameter matches remote access session token.
|
protected |
Initialize session data (calls php::session_start())
|
protected |
Sests session id to $sSessId
string | $sSessId | sesion ID |
|
protected |
Validate loaded from session basket content. Check for language change.
\OxidEsales\Eshop\Application\Model\Basket | $oBasket | Basket object loaded from session. |
OxidEsales\EshopCommunity\Core\Session::checkSessionChallenge | ( | ) |
check for CSRF, returns true, if request (get/post) token matches session saved var false, if CSRF is possible
OxidEsales\EshopCommunity\Core\Session::delBasket | ( | ) |
Deletes basket session object.
OxidEsales\EshopCommunity\Core\Session::deleteVariable | ( | $name | ) |
Destroys a single element (passed to method) of an session array.
string | $name | Name of parameter to destroy |
OxidEsales\EshopCommunity\Core\Session::destroy | ( | ) |
Destroys all data registered to a session.
OxidEsales\EshopCommunity\Core\Session::freeze | ( | ) |
Ends the current session and store session data.
OxidEsales\EshopCommunity\Core\Session::getBasket | ( | ) |
Returns basket session object.
OxidEsales\EshopCommunity\Core\Session::getBasketReservations | ( | ) |
return basket reservations handler object
OxidEsales\EshopCommunity\Core\Session::getForcedName | ( | ) |
Returns forced session id param name
OxidEsales\EshopCommunity\Core\Session::getId | ( | ) |
Returns session ID
OxidEsales\EshopCommunity\Core\Session::getName | ( | ) |
Returns session param name
OxidEsales\EshopCommunity\Core\Session::getRemoteAccessToken | ( | $blGenerateNew = true | ) |
Returns remote access key. With this key (called over "remotekey" URL parameter) and session id (sid parameter) you can access session from another client. The key is generated once per session after the first request.
bool | $blGenerateNew | Should new token be generated |
OxidEsales\EshopCommunity\Core\Session::getRequestChallengeToken | ( | ) |
retrieve session challenge token from request
OxidEsales\EshopCommunity\Core\Session::getSessionChallengeToken | ( | ) |
retrieve session challenge token from session
|
protected |
Return Shop IR parameter for Url.
|
protected |
retrieves the session id from the request if any
OxidEsales\EshopCommunity\Core\Session::getVariable | ( | $name | ) |
IF available returns value of parameter, stored in session array.
string | $name | Name of parameter |
OxidEsales\EshopCommunity\Core\Session::hasVariable | ( | $name | ) |
Checks if variable is set in session. Returns true on success.
string | $name | Name to check |
OxidEsales\EshopCommunity\Core\Session::hiddenSid | ( | ) |
Forms input ("hidden" type) to pass session ID after submitting forms.
OxidEsales\EshopCommunity\Core\Session::initNewSession | ( | ) |
Assigns new session ID, clean existing data except persistent.
OxidEsales\EshopCommunity\Core\Session::isActualSidInCookie | ( | ) |
Checks if current session id is the same as in originally received cookie. This method is intended to indicate if new session cookie is to be sent as header from this script execution.
|
protected |
True if given class is found within serialized object.
string | $serializedObject | |
string | $className |
|
protected |
True if given class or null value is found after given field in serialized object.
string | $serializedObject | |
string | $fieldName | |
string | $className |
OxidEsales\EshopCommunity\Core\Session::isHeaderSent | ( | ) |
Checks if headers were already outputed
OxidEsales\EshopCommunity\Core\Session::isNewSession | ( | ) |
Indicates if setting of session id is executed in this script.
|
protected |
True if given serialized object is constructed with compatible classes.
string | $serializedBasket |
OxidEsales\EshopCommunity\Core\Session::isSessionStarted | ( | ) |
Returns true if session was started
OxidEsales\EshopCommunity\Core\Session::isSidNeeded | ( | $sUrl = null | ) |
Checks if cookies are not available. Returns TRUE of sid needed
string | $sUrl | if passed domain does not match current - returns true (optional) |
|
protected |
True if both basket objects have been constructed from same class.
Shop cannot function properly if provided with different basket class.
\OxidEsales\Eshop\Application\Model\Basket | $basket | |
\OxidEsales\Eshop\Application\Model\Basket | $emptyBasket |
|
protected |
Decide if need to set session headers to browser.
OxidEsales\EshopCommunity\Core\Session::processUrl | ( | $sUrl | ) |
Appends url with session ID, but only if \OxidEsales\Eshop\Core\Session::_isSidNeeded() returns true Direct usage of this method to retrieve end url result is discouraged - instead see \OxidEsales\Eshop\Core\UtilsUrl::processUrl
string | $sUrl | url to append with sid |
OxidEsales\EshopCommunity\Core\Session::regenerateSessionId | ( | ) |
Regenerates session id
OxidEsales\EshopCommunity\Core\Session::setBasket | ( | $oBasket | ) |
Sets basket session object.
object | $oBasket | basket object |
OxidEsales\EshopCommunity\Core\Session::setForceNewSession | ( | ) |
Forces starting session and skips checking if session is allowed to start when calling \OxidEsales\Eshop\Core\Session::start();
OxidEsales\EshopCommunity\Core\Session::setId | ( | $sVal | ) |
Sets session id
string | $sVal | id value |
OxidEsales\EshopCommunity\Core\Session::setName | ( | $sVal | ) |
Sets session param name
string | $sVal | name value |
|
protected |
OxidEsales\EshopCommunity\Core\Session::setVariable | ( | $name, | |
$value | |||
) |
Sets parameter and its value to global session mixedvar array.
string | $name | Name of parameter to store |
mixed | $value | Value of parameter |
OxidEsales\EshopCommunity\Core\Session::sid | ( | $blForceSid = false | ) |
Returns string prefix to URL with session ID parameter. In some cases (if client is robot, such as Google) adds parameter shp, to identify, witch shop is currently running.
bool | $blForceSid | forces sid getter, ignores cookie check (optional) |
|
protected |
Place to hook when SID is added to URL.
OxidEsales\EshopCommunity\Core\Session::start | ( | ) |
Starts shop session, generates unique session ID, extracts user IP.
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |