Helper/Session.php
public function saveSession($qouoteId, $checkoutSession)
    {
        // cache the session id by (parent) quote id
        $cacheIdentifier = self::BOLT_SESSION_PREFIX . $qouoteId;
        $sessionData = [
            "sessionType" => $checkoutSession instanceof \Magento\Checkout\Model\Session ? "frontend" : "admin",
            "sessionID"   => $checkoutSession->getSessionId()
        ];
        $this->cache->save(serialize($sessionData), $cacheIdentifier, [], 86400);
    }
public function saveSession($qouoteId, $checkoutSession)
    {
        // cache the session id by (parent) quote id
        $cacheIdentifier = self::BOLT_SESSION_PREFIX . $qouoteId;
        $sessionData = [
            "sessionType" => $checkoutSession instanceof \Magento\Checkout\Model\Session ? "frontend" : "admin",
            "sessionID"   => $checkoutSession->getSessionId()
        ];
        $this->cache->save(serialize($sessionData), $cacheIdentifier, [], 86400);
    }
public function saveSession ( $ qouoteId , $ checkoutSession ) { // cache the session id by (parent) quote id $ cacheIdentifier = self :: BOLT_SESSION_PREFIX . $ qouoteId ; $ sessionData = [ "sessionType" => $ checkoutSession instanceof \ Magento \ Checkout \ Model \ Session ? "frontend" : "admin" , "sessionID" => $ checkoutSession -> getSessionId ( ) ] ; $ this -> cache -> save ( serialize ( $ sessionData ) , $ cacheIdentifier , [ ] , 86400 ) ; }
Cache the session id for the quote

@param int|string $qouoteId
@param mixed $checkoutSession
Cache the session id for the quote