similar to: problem with rake db:sessions:clear and session_table_name

Displaying 20 results from an estimated 200 matches similar to: "problem with rake db:sessions:clear and session_table_name"

2008 Dec 25
2
Switching to active_record_store session management errors out
Hello, Running Ruby 1.8.6 and Rails 2.2.2 against an Oracle XE database (sigh). I just upgraded Rails from 1.2.3 to 2.2.2, which made my cookie based system for storing session information to error out due to the 4Kb limit. So, I tried to turn on the active_record_store system by un- commenting out the "config.action_controller.session_store = :active_record_store" line in
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of ways but I get all kinds of weird errors, as
2008 Mar 07
0
ActiveRecordStore: cleanup & avoiding duplication
Hi, I''m using ActiveRecordStore to track user sessions. I''ve used as a base the next sources: - http://blog.levicole.com/articles/category/ror - http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/ - http://www.williambharding.com/blog/?p=99 This is what I currently do: IN SESSION CONTROLLER def create self.current_user = User.authenticate(params[:login],
2005 Aug 06
2
Problem with 0.13.1 ActiveRecordStore with PG 8.0.3.
Hi, I put the following in my environment.rb file: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update (:database_manager => CGI::Session::ActiveRecordStore) Runnning WEBrick via "script/server" and trying to load any page served by a controller results in an error like the following: #<ActiveRecord::StatementInvalid: ERROR: null value in column "id"
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
Today I worked on adding email exception notification to some ancillary background processes for a Rails app. Since I was already using Jamis'' exception notification plugin to notify me of errors in controllers for the web app, I figured that the path of least resistance was to try to figure out how to hook it into the daemon code. At first it looked easy. I just needed to
2005 Jan 19
1
Problem with ActiveRecordStore
I''m having an issue using the ActiveRecordStore for sessions with Rails 0.9.4.1. When I setup the session object during login I get the following stack trace: IndexError in Login#auth string not matched /app/controllers/login_controller.rb:26:in `auth'' gems/gems/actionpack-1.3.1/lib/action_controller/base.rb:596:in `send''
2006 Oct 29
1
ActiveRecordStore: Where is the session id generated?
Where can I find the algorithm that generates the session ids for the ActiveRecordStore (sql session)? Thanks, Shimon Amit --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2006 Nov 04
0
Session::ActiveRecordStore
Hi, I''m trying to use the ACtiveRecordStore option to accelerate the respone time, since I will a hugo object stored inside the session object. Everything works fine, however, I want to know if the "sessions" table must be set on the default database like pro. test, dev. Or Can I tell rails for the sessions table you should look at "This" database, instead of the
2006 Jun 09
0
How to specify database for ActiveRecordStore?
Hi, Is there a way to specify which database to use (other than the default) for storing sessions via ActiveRecordStore? I have a replication setup in MySQL with my application set to read from the slave db, and don''t want the sessions to be written there. thanks. -michael -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
0
Flash keeping forever when using ActiveRecordStore
Hello, I''m hosting the app on Dreamhost and when I set the session store to ActiveRecordStore (after creating sessions table), Flash is suddenly keeping forever - it is not being cleared out automatically. On Webrick with default session store everything works fine. Any ideas how to solve this? Thanks! -- Posted via http://www.ruby-forum.com/.
2005 Sep 09
0
ActiveRecordStore session.id
Hi, I am using ActiveRecordStore for my sessions. I have another model called PageView that stores a record each time a page is viewed (page_id, session_id). In order to implement this, however, I need to be able to access the session''s primary ''id'' value, the integer, not the long encoded ''session_key''. My problem is that I can''t access
2011 Sep 20
0
What's the difference between mattr_accessor and cattr_accessor in ActiveSupport?
Hi, I was reading source code of mattr_accessor and cattr_accessor in ActiveSupport and found out that the method definitions are all most identical. Except cattr_writer accepts a optional block. I googled and read http://stackoverflow.com/questions/2203800/difference-between-mattr-accessor-and-cattr-accessor-in-activesupport. That guy had the same question as me, but no one answered the question
2009 Oct 17
3
Security problems with CookieStore and CSRF protection
Dear Rails community, As part of a programming languages/security research group at the University of Maryland, we are building some static analysis tools for Rails applications. These tools work by taking formally specified properties of interest, and then analyzing code to verify that those properties indeed hold. Using these tools, we found some security vulnerabilities in Rails, and we would
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the environments.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] = CGI::Session::ActiveRecordStore BUT the environments.rb file would have me Un-Comment this: config.action_controller.session_store = :active_record_store Anyway, I''ve tried both, and in both cases it
2006 Dec 01
2
ActiveRecord Sessions
I am considering using merb to process file uploads. For the most part I''m going to keep it lean and mean. I would however like to access my active_record_session from my Rails app. Is this built into merb yet? Or is it OK to just add require ''action_controller/session/ active_record_store'' to merb_init.rb and then create my own session object
2006 Jun 22
0
SessionCleanup (clean up sessions within Rails app)
SessionCleanup is a routine to clear out stale sessions from within a Rails application. A Rails application creates a new session for every connection. Over time, this leads to the accumulation of hundreds or thousands of stale session files or session records (if you''re using a database). These sessions are often cleaned out manually or by the use of a cron job. Neither of these
2006 Apr 04
0
Session-Problem: singleton can''t be dumped
Hello, after having changed the session store from CGI::Session::DRbStore to CGI::Session::ActiveRecordStore, I keep getting an error which says: singleton can''t be dumped However, my session object is not a singleton. Does anybody know what causes this error? I can also post the full stack trace, if required. Greetings Michael Kastner
2005 Dec 26
0
Problems with Plugin Models
I''m developing a plugin that provides several models (with a Rakefile to generate the schema). However, I''m running into two problems: 1. How can I setup a ''models'' directory? Only ''myplugin/lib'' is in the load path, and if I move my models to ''myplugin/lib/models'' -- even if I explicitly require them all -- it tries to
2005 Apr 07
0
Problem with rails on windows using sessions, any help?
Hi, I''m a new rails/ruby user and am having troubles with sessions under windows. Maybe someone can help me? Env: Webrick,WindowsXPPro,MySQL Whenever I try to put an item in the session, and then retrieve it on a future page load, the item is nil. Somehow it is not persisting the session items after the request. I looked at the session files and there are hundreds of them, I thought that
2007 Mar 07
0
Error while initializng temporary session directories in edge
I''m encountering an odd error when starting up apps running Edge on my production server (or in the console). The same app works fine in deployment mode on a different machine. Note, this seems to be only a problem with edge, as i run several apps under 1.2.1 on the same server and do not have any problems. Here is the full stack-trace: