session handling

add session handling