What session state? 

I rewrote it because I didn't understand the old version. Isn't it much easier to understand now?