Sessions last as long as the browser is open, once the browser closes then the session ends. If you want variables to last after the browser is closed then you have to use Cookies. You can set how long a session lasts, but the maximum time is how long the browser is open.
Google PHP Sessions and PHP Cookies for more info.