 class window.mem0r1es.UserStudyToolbox
 
   constructor : (@storageManager)->
+    @sessionPageDisplayed = 0
     @currentCount = 0
     @initLastDump()
     @dumpServerURL = "http://127.0.0.1:8080/"

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

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