I am using HTML::Templating system for my project and the requirement is, URL given at the address bar should not be changed throughout the application, I could able to achieve this and works fine for me (I have a login page and users have to login to access the application).

The problem I am facing is, If the user refreshes or does anything, nothing will happen and everything works fine, but when the user places cursor at the address bar and presses Enter, then the page is getting redirected to login page asking the user to login again.

Can someone help me in this regard?