session: removed superfluous code