SpringFlowers AutumnMoon wrote:
> is it true that Rails depend on cookies?  It seems that flash is a part
> of session, and session uses cookies... so when i disable cookie in
> Firefox, what was working became
> 
> ActionController::InvalidAuthenticityToken
> 
> so is it true that for a RoR app to work, cookies are mandatory?

Rails itself uses cookies only for its session store. From Rails 2.3 
onwards, the session store is initialized lazily: if you don't use it in 
a request, then it's not initialized. Forgery protection indeed relies 
on the session store, but you can disable it.

So theoretically: no, Rails apps don't require cookies. But what are the 
practical reasons to be concerned about them?

--
Roderick van Domburg
http://www.nedforce.com
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to