Fixed session implementation.