session example code

example code for session selects