Session handling example