Updated the simple session manipulation example.

The former example was out of date and unfunctionnal.
Many topics accross the web was based on the former example. 
No one was giving the right answer. 
I hope this snippet of code will help. Although it's not perfect, it works.