Friday, January 22, 2010

Re: [Rails] Re: Authlogic and Sessions

On Fri, 2010-01-22 at 05:44 -0700, Craig White wrote:
> On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote:
> > Hello.
> >
> > Try adding this line to config/environment.rb in config block:
> >
> > config.action_controller.session_store = :active_record_store
> ----
> yes, this was needed. I think I expected that this was going to be added
> automatically when I ran 'rake db:sessions:create' command but now at
> least it is adding sessions to the sessions table.
----
my questions are still not coming out on the authlogic list...

Each link I touch on my web site creates an identical session record in
sessions table... (identical session_id and data columns)

and if I don't disable 'protect_from_forgery', I get
InvalidAuthenticityToken error upon login.

Perhaps this is caused by my using 'Member' instead of 'User' and
'MemberSessions' instead of 'UserSessions' throughout but I wouldn't
think so.

Something in my sessions is not working correctly

also, FTR... I found 'config.action_controller.session_store
= :active_record_store' commented out in
config/initializers/session_store.rb and uncommented that one and
commented out the added entry in config/environment.rb.

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate