fixed condition in User class
now default value of use_extended_session is false
adding second parameter to the memory getter