Updated the simple session manipulation example.

The former example was out of date and unfunctionnal.