i need to understand cause meteor docs have no information about how/when session is deleted…
i implement infinite scrolling pub/sub…i use session to increase subscription limit… my default limit is 2…when user’s scroll reach bottom of window, this should increase 2 limit
first time visit the page,, let say myPage,, it shows 2 documents // as expected
typing Session.get("key") on console,, it prints 2 // as expected
when scroll reach bottom of window it added 2 documents // as expected
typing Session.get("key") on console,,, it prints 4 // as expected
when i change route (i use flowrouter),, and get back to myPage,, it shows 4 documents...
typing Session.get("key") on console, it print 2,, instead of 4
is this expected behavior…?? is this mean previous session has been deleted due to route changing…?? or, my mistake…?? as i googling, session variables do not survive a manual page refresh (cmd+r)… i don’t see page refresh when route is changing,
maybe,when i get back to myPage, the myPage template will re-create and Session.set("docsLimit", 2) will be called, then Session.get("docsLimit") will become 2, is this correct explanation…??