# Refresh and ajax pages

**URL:** <https://www.ruby-forum.com/t/refresh-and-ajax-pages/105772>\
**Category:** Rails\
**Created:** [June 2, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/refresh-and-ajax-pages/105772 "2007-06-02T13:48:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiliano](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3be4f8/32.png) [@emiliano](https://www.ruby-forum.com/u/emiliano)\
**Post date:** [June 2, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/refresh-and-ajax-pages/105772/1 "2007-06-02T13:48:30Z")

</div>

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.
