/** * Destroy the current session * * @todo Determine how much of these steps are unnecessary, and remove them. */ function phpAds_SessionDataDestroy() { $dal = new MAX_Dal_Admin_Session(); global $session; $dal->deleteSession($_COOKIE['sessionID']); MAX_cookieAdd('sessionID', ''); MAX_cookieFlush(); unset($session); unset($_COOKIE['sessionID']); }
function assertSessionData($data = SDATA) { $actualSerializedData = $this->dalSession->getSerializedSession(SESSIONID); $this->assertEqual($data, $actualSerializedData); }