Refresh and ajax pages

In my application (thah use ajax to manage pages) if the user push the
browser refresh button after login, the page reloaded is the default
(the login page) and not the custom user page. How i can to correct
this behaviour?
I have a user object in session to test if an user is logged in.
I suppose that the problem is in MyController/index.

Emiliano.