The lifetime variable you have mentioned is exactly what you have to deal with:
if the variable session.lifetime = 0 the session will end when the browser is closed.
Every other setting is lifetme in seconds
e.g:
sesson.lifetime = 60 :
------> would let the session 'live' for 1 minute.
hope i could help you
ali