OXID eShop CE
4.10.2
|
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 () | |
Public Member Functions inherited from oxSuperCfg | |
__call ($sMethod, $aArgs) | |
__construct () | |
getConfig () | |
setConfig ($oConfig) | |
getSession () | |
setSession ($oSession) | |
getUser () | |
setUser ($oUser) | |
isAdmin () | |
setAdminMode ($blAdmin) |
Protected Member Functions | |
_initNewSessionChallenge () | |
_sessionStart () | |
_getNewSessionId ($blUnset=true) | |
_validateBasket (oxBasket $oBasket) | |
_forceSessionStart () | |
_allowSessionStart () | |
_isSwappedClient () | |
_checkUserAgent ($sAgent, $sExistingAgent) | |
_checkSid () | |
_checkCookies ($sCookieSid, $aSessCookieSetOnce) | |
_setSessionId ($sSessId) | |
_getBasketName () | |
_getCookieSid () | |
_getRequireSessionWithParams () | |
_isSessionRequiredAction () | |
_getSessionUseCookies () | |
_isValidRemoteAccessToken () |
Protected Attributes | |
$_sName = 'sid' | |
$_sForcedPrefix = 'force_' | |
$_sId = null | |
$_blNewSession = false | |
$_blForceNewSession = false | |
$_sErrorMsg = null | |
$_oBasket = null | |
$_oBasketReservations = null | |
$_blStarted = false | |
$_aRequireSessionWithParams | |
$_blSidNeeded = null | |
$_aPersistentParams = array("actshop", "lang", "currency", "language", "tpllanguage") |
Static Protected Attributes | |
static | $_blIsNewSession = false |
static | $_oUser = null |
Static Protected Attributes inherited from oxSuperCfg | |
static | $_oConfig = null |
static | $_oSession = null |
static | $_oRights = null |
static | $_oActUser = null |
static | $_blIsAdmin = null |
Session manager. Performs session managing function, such as variables deletion, initialisation and other session functions.
Definition at line 11 of file oxsession.php.
|
protected |
Checks if we can start new session. Returns bool success status
Definition at line 803 of file oxsession.php.
|
protected |
Check for existing cookie. Cookie info is dropped from time to time.
string | $sCookieSid | coockie sid |
array | $aSessCookieSetOnce | if session cookie is set |
Definition at line 931 of file oxsession.php.
|
protected |
Checking if this sid is old
Definition at line 904 of file oxsession.php.
|
protected |
Checking user agent
string | $sAgent | current user agent |
string | $sExistingAgent | existing user agent |
Definition at line 878 of file oxsession.php.
|
protected |
Returns true if its not search engine and config option blForceSessionStart = 1/true or _GET parameter "su" (suggested user id) is set.
Definition at line 793 of file oxsession.php.
|
protected |
|
protected |
|
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] |
Definition at line 381 of file oxsession.php.
|
protected |
returns configuration array with info which parameters require session start
Definition at line 1036 of file oxsession.php.
|
protected |
return cookies usage for sid possibilities
Definition at line 1081 of file oxsession.php.
|
protected |
initialize new session challenge token
Definition at line 281 of file oxsession.php.
|
protected |
|
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.
Definition at line 838 of file oxsession.php.
|
protected |
Checks if token supplied over 'rtoken' parameter match remote access session token.
Definition at line 1091 of file oxsession.php.
|
protected |
Initialize session data (calls php::session_start())
Definition at line 291 of file oxsession.php.
|
protected |
Sests session id to $sSessId
string | $sSessId | sesion ID |
Definition at line 978 of file oxsession.php.
|
protected |
Validate loaded from session basket content. Check for language change.
Definition at line 610 of file oxsession.php.
oxSession::checkSessionChallenge | ( | ) |
check for CSRF, returns true, if request (get/post) token maches session saved var false, if CSRF is possible
Definition at line 271 of file oxsession.php.
oxSession::delBasket | ( | ) |
Deletes basket session object.
Definition at line 639 of file oxsession.php.
oxSession::deleteVariable | ( | $name | ) |
Destroys a single element (passed to method) of an session array.
string | $name | Name of parameter to destroy |
Definition at line 503 of file oxsession.php.
oxSession::destroy | ( | ) |
Destroys all data registered to a session.
Definition at line 415 of file oxsession.php.
oxSession::freeze | ( | ) |
Ends the current session and store session data.
Definition at line 404 of file oxsession.php.
oxSession::getBasket | ( | ) |
oxSession::getBasketReservations | ( | ) |
return basket reservations handler object
Definition at line 1105 of file oxsession.php.
oxSession::getForcedName | ( | ) |
oxSession::getId | ( | ) |
oxSession::getName | ( | ) |
oxSession::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 |
Definition at line 775 of file oxsession.php.
oxSession::getRequestChallengeToken | ( | ) |
retrieve session challenge token from request
Definition at line 244 of file oxsession.php.
oxSession::getSessionChallengeToken | ( | ) |
retrieve session challenge token from session
Definition at line 254 of file oxsession.php.
oxSession::getVariable | ( | $name | ) |
IF available returns value of parameter, stored in session array.
string | $name | Name of parameter |
Definition at line 477 of file oxsession.php.
oxSession::hasVariable | ( | $name | ) |
Checks if variable is set in session. Returns true on success.
string | $name | Name to check |
Definition at line 429 of file oxsession.php.
oxSession::hiddenSid | ( | ) |
Forms input ("hidden" type) to pass session ID after submitting forms.
Definition at line 560 of file oxsession.php.
oxSession::initNewSession | ( | ) |
Assigns new session ID, clean existing data except persistent.
Definition at line 328 of file oxsession.php.
oxSession::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.
Definition at line 724 of file oxsession.php.
oxSession::isHeaderSent | ( | ) |
oxSession::isNewSession | ( | ) |
Indicates if setting of session id is executed in this script.
Definition at line 650 of file oxsession.php.
oxSession::isSessionStarted | ( | ) |
oxSession::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) |
Definition at line 671 of file oxsession.php.
oxSession::processUrl | ( | $sUrl | ) |
Appends url with session ID, but only if oxSession::_isSidNeeded() returns true Direct usage of this method to retrieve end url result is discouraged - instead see oxUtilsUrl::processUrl
string | $sUrl | url to append with sid |
Definition at line 742 of file oxsession.php.
oxSession::regenerateSessionId | ( | ) |
Regenerates session id
Definition at line 359 of file oxsession.php.
oxSession::setBasket | ( | $oBasket | ) |
Sets basket session object.
object | $oBasket | basket object |
Definition at line 630 of file oxsession.php.
oxSession::setForceNewSession | ( | ) |
Forces starting session and skips checking if session is allowed to start when calling oxSession::start();
Definition at line 659 of file oxsession.php.
oxSession::setId | ( | $sVal | ) |
oxSession::setName | ( | $sVal | ) |
Sets session param name
string | $sVal | name value |
Definition at line 154 of file oxsession.php.
oxSession::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 |
Definition at line 454 of file oxsession.php.
oxSession::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) |
Definition at line 529 of file oxsession.php.
oxSession::start | ( | ) |
Starts shop session, generates unique session ID, extracts user IP.
Definition at line 182 of file oxsession.php.
|
protected |
Definition at line 127 of file oxsession.php.
|
protected |
Definition at line 100 of file oxsession.php.
|
protected |
Definition at line 62 of file oxsession.php.
|
staticprotected |
Definition at line 40 of file oxsession.php.
|
protected |
Definition at line 55 of file oxsession.php.
|
protected |
Definition at line 120 of file oxsession.php.
|
protected |
Definition at line 90 of file oxsession.php.
|
protected |
Definition at line 76 of file oxsession.php.
|
protected |
Definition at line 83 of file oxsession.php.
|
staticprotected |
Definition at line 47 of file oxsession.php.
|
protected |
Definition at line 69 of file oxsession.php.
|
protected |
Definition at line 26 of file oxsession.php.
|
protected |
Definition at line 33 of file oxsession.php.
|
protected |
Definition at line 19 of file oxsession.php.