# Session problem \[restful authentication\]

**URL:** <https://discuss.rubyonrails.org/t/session-problem-restful-authentication/32033>\
**Category:** rubyonrails-talk\
**Created:** [July 18, 2008, 12:32pm UTC](https://discuss.rubyonrails.org/t/session-problem-restful-authentication/32033 "2008-07-18T12:32:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [July 18, 2008, 12:32pm UTC](https://discuss.rubyonrails.org/t/session-problem-restful-authentication/32033/1 "2008-07-18T12:32:45Z")

</div>

Hi,

I just installed "restful\_auhtentication" to my application. The installation iteself went just fine but when i try to access sites that need authentication I get a strange error message from Firefox (German so I dont know the original message from Firefox): Redirecting loop: The website being called is redirecting a request which cannot be terminated.

When I try to add a new post for example I get redirected to /session/new and thats where I get that error. Does anybody has a clue what's wrong here?!

Thanks a bunch, Cojones

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [July 18, 2008, 3:46pm UTC](https://discuss.rubyonrails.org/t/session-problem-restful-authentication/32033/2 "2008-07-18T15:46:04Z")

</div>

Shandy Nantz wrote:

> Is 'new' the name of the method name and not the name of the page? It sounds like maybe you aren't redirecting correctly?

Well, I did it like always, SessionController: &nbsp;&nbsp;# render new.rhtml &nbsp;&nbsp;def new &nbsp;&nbsp;end

new.rhtml.erb is located in Views\sessions and routes does have following entry: map.resource :session

Quite normal I guess?

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [July 19, 2008, 10:02am UTC](https://discuss.rubyonrails.org/t/session-problem-restful-authentication/32033/3 "2008-07-19T10:02:45Z")

</div>

I'm desperate... any ideas?!

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [July 19, 2008, 2:06pm UTC](https://discuss.rubyonrails.org/t/session-problem-restful-authentication/32033/4 "2008-07-19T14:06:14Z")

</div>

Added skip\_before\_filter :login\_required to the SessionsController, problem solved.
