渡辺です。
ふと思ったんですが、
>session.cookie_lifetime = 0
のところを
session.cookie_lifetime = 600 ;(つまり10分)
にしたりしたら

セ ッ シ ョ ン が 切 れ る だ け で す 。