Each client is identified by a hash, passed along with every request to the server. What’s the best way to handle tracking a users session in this case?
I’m using restful_authentication for user accounts etc. A large percentage of requests are expected to originate without a user account but just the unique hash.
My understanding of the way handles sessions is limited so please bear that in mind. 🙂
Using this hash in the URL means that you don’t have Rails built-in session. The point of the session is to provide some sense of state between requests. You’re already providing this state, seeing that you are passing this hash, so in my opinion you could remove the restful_authentication plugin and do something like this instead:
Then, do a
before_filter :require_loginin the controllers where login is required for access.