     return
     
   saveSession : (messageContent, sendResponse) =>
+    @sessionPageDisplayed = false
     @storageManager.store "userStudySessions", messageContent, () =>
       @updateLastActivityTime()
       localStorage.setItem 'lastUserStudySessionId', messageContent.userStudySessionId

class window.mem0r1es.UserStudyToolbox

  constructor : (@storageManager)->
    @currentCount = 0
    @initLastDump()
    @dumpServerURL = "http://127.0.0.1:8080/"

    return lastActivityTime
    
  checkIfNeedNewContext : () ->
    if (new Date().getTime() - @getLastActivityTime())>10*1000*60 and not @sessionPageDisplayed
      chrome.tabs.create {'url': chrome.extension.getURL('html/sessionInfo.html'), pinned:true}
      @sessionPageDisplayed = true
    @updateLastActivityTime()
  
  countDumpedData : (sendResponse) ->
