Updated Session Class

Function names has changed.
Added extra parameter for return it, if it is not determine on function
get.