# Redirect bug with restful-authetication

**URL:** <https://www.ruby-forum.com/t/redirect-bug-with-restful-authetication/196828>\
**Category:** Rails\
**Created:** [October 23, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/redirect-bug-with-restful-authetication/196828 "2008-10-23T15:13:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ami](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@ami](https://www.ruby-forum.com/u/ami)\
**Post date:** [October 23, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/redirect-bug-with-restful-authetication/196828/1 "2008-10-23T15:13:01Z")

</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
