integration with login and session mechanism