Session method

It works, ready to be merged