# Redirect bug with restful-authetication

**URL:** <https://discuss.rubyonrails.org/t/redirect-bug-with-restful-authetication/35661>\
**Category:** rubyonrails-talk\
**Created:** [October 23, 2008, 1:11pm UTC](https://discuss.rubyonrails.org/t/redirect-bug-with-restful-authetication/35661 "2008-10-23T13:11:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ami](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Ami](https://discuss.rubyonrails.org/u/Ami)\
**Post date:** [October 23, 2008, 1:11pm UTC](https://discuss.rubyonrails.org/t/redirect-bug-with-restful-authetication/35661/1 "2008-10-23T13:11:54Z")

</div>

Hi

i'm expriencing a weird bug with the restful authentication plugin:

when a user is logged-in and closed the browser then reopen it the page will loop with a redirect

my only temp solution is to clear the cookies and autheticated session the reload

here's my session controller:

[http://www.pastie.org/298856](http://www.pastie.org/298856)

is it because of my before filters not set correctly?

thanks Ami
