Authenticated Cookie plugin

Plugin details

The system introduced by Technoweenie in his Acts as Authenticated design is quite good, but unfortunately it relies on sessions and it is the author's opinion that doubling the cookie and sess_id is just plain foolish.

Websitehttp://www.mathewabonyi.com/articles/2006/07/29/authenticated-cookie-safe-fast Author mabs29 Tags Auth, Cookie LicenseUnknown

Documentation

I don’t really think this is deserving of a plugin, but for those of you using Acts as Authenticated who want to really squeeze twice as much out of your application, here’s one way to do it:

1. Install Acts as Authenticated
2. Create User model
3. Fix application to expect current_user.is_a? User
4. (optional) Fix application to not use sessions or flash
5. Remove “include AuthenticatedSystem” from application.rb
6. Add migration from below
7. Place the following library in your lib and require it in environment.rb
8. Put include AuthenticatedCookie in your application.rb
9. (optional) Turn off sessions by placing the following in your environment.rb:

ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:disabled => true)

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago