Changed authentication management. Solved session timeouts.