 
       if cookie_data.version isnt cookie_settings.version or !cookie_settings.first_party_enabled
         Biskoto.expire(cookie_name)
+
+    _getCookieYogurtSession: -> Biskoto.get(Settings.cookies.yogurt.name)
 
     _getCookieAnalyticsSession: ->
       data = Biskoto.get(Settings.cookies.analytics.name)


      @_cleanUpCookies()

      @analytics_session = @_getCookieAnalyticsSession()
      @yogurt_session = Biskoto.get(Settings.cookies.yogurt.name)

      # Always create third party cookie on analytics domain
      # if on create phase
      if @analytics_session isnt null and @yogurt_session is null
        ## TODO: SHOULD BE RE-SET expires ATTRIBUTE IF COOKIE ALREADY EXISTS?
        @promise.resolve @analytics_session
      else
        @socket = @_createSocket @_socketUrl(@yogurt_session)
        @_getAnalyticsSession()

    then: (success, fail)-> @promise.then(success, fail)

    _getAnalyticsSession: ->
      Promise.all([
        @_extractIframe()
        @_extractGetParam()
      ]).then (results) =>
        analytics_session = results[0] or results[1]


      @analytics_session = analytics_session
      @promise.resolve analytics_session

    _extractFromGetParam: ->
      promise = new Promise()
      promise.resolve URLHelper.extractGetParam(Settings.get_param_name)

    _extractFromIframe: ->
      @socket.promise = new Promise()
      @socket.postMessage('get_analytics_session')
      @socket.promise
