Here the solution simple add in front of var name global
Global var is a regular variable that expires when you close browser only