Displaying 20 results from an estimated 1000 matches similar to: "Session Restore"
2005 Dec 22
3
acts_as_stateless ?
Is there such a thing that I could use to store sessions in the DB
instead of in a cookie so that I can ensure users will be able to
access their session data even across several load balancers? We use
totally stateless machines here at work and I am worried about
deploying a rails app in production that uses a volitile session
stored on the machine.
Any help is great!
Happy Holidays,
Mark
--
2011 May 19
3
Cookie Overflow at CSV import
Hi
I have a form for importing a csv file. With every entry in my CSV I
do a delayed background call from a webservice and the result is then
saved to my database. This is working great!
Now I tried a CSV file with over 400 rows. After clicking import in my
form it takes some time and then I get the following error message:
''ActionDispatch::Cookies::CookieOverflow''. But
2009 Feb 19
1
Switching to ActiveRecord Session Store
I''m having a problem switching from cookie sessions (the default) to
active record sessions.
I''ve created the sessions table via the rake task, uncommented the
line
config.action_controller.session_store = :active_record_store
in my environment.rb file, cleared out my browsers cookies, restarted
the server (natch), but still the it''s using cookie_store instead of
2008 Jul 08
7
script/server error
Not sure why I''m getting this error, cause I believe it worked
yesterday before I quit and now it''s giving me this error. The last
thing I did was try and get an ActionMailer thing to work. I searched
through the archives but nothing seemed applicable to my error.
Here''s the error I''m getting:
ruby script/server
=> Booting Mongrel (use
2010 Oct 15
2
how to list all sessions?
I have created ActiveRecord session store in a rails 3 project:
> rake db:sessions:create
> rake db:migrate
then
Myapp::Application.config.session_store :active_record_store, :key =>
''_myapp_session''
in initializers/session_store.rb and it all works.
Now the question: how do I list ALL active sessions?
--
You received this message because you are subscribed to the
2009 Jun 19
1
config.action_controller.session_store = :active_record_store
Hi All,
I am new to Rails and learning rails reading ebook ''Agile web
development using rails''. I am doing samples given in this book
chapter by chapter.
but I stuck when I come to Sessions chapter, they have given that to
enable session to be Database based the line
config.action_controller.session_store = :active_record_store is to be
uncommented from config/environment.rb
2007 Sep 18
1
Mongrel Upload Progress progress method returns Content-Length: 0
Running into a strange bug using the mongrel upload progress plugin
handler, sitting in front of a simple mongrel.
The bug appears on an old Xserve (mac OS X 10.3.9 powerpc), but not on
my macbook pro, or even a generic 686 linux box.
http://pastie.textmate.org/98341
The gist of the pastie above shows that attempts through the browser
and curl are actually hitting the filesController, as
2007 Apr 23
3
mongrel in production not using AR Sessions
Hello,
For some reason when i change the "environments" line in
mongrel_cluster.yml to use production, ActiveRecord Sessions stop working.
Changing this line to development yield the correct result. Entries in
database.yml are correct, and confirmed that the sessions table exists in
both environments and that production is indeed working
(production.logbeing filled up).
Any idea why
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but
I''m not finding any guidance on this problem. When I try to talk to my
mongrel it simply responds with NOT FOUND and nothing else. I can''t
find anything on google because this has to be the second most commond
phrase in existence.
Any help or guidance would be greatly appreciated.
Sincerely,
Chuck Vose
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
Hey All,
I''m trying to do a simple form_for (and I also get it with form_tag)
and I''m getting the following error:
ActionView::TemplateError (No :secret given to the
#protect_from_forgery call. Set that or use a session store capable
of generating its own keys (Cookie Session Store).) on line #2 of
users/new.fbml.erb:
1: <h1>Welcome To Courses, Let''s Get
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating
config.action_controller.session_store = :active_record_store in
environment.rb
this is the code in environment.rb
---------------------------------------------------------------------------
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION =
2007 Feb 09
6
mongrel_cluster clarification
Apologizes in advance if this sounds rather dense, but I want to make sure
I''m understanding everything correctly. We''re in the process of migrating
from Apache2.0/FastCGI to Apache2.0+mongrel (why not 2.2? that story is too
long and too uninteresting to recount here, but I will tell you that it
involves RHEL and only using RHN rpms).
The init script that comes with mongrel
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
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 Apr 04
2
TransactionError
Hi
Today I got an alert mail from my watcher script, telling me that there was no
Mongrel running, and that it started one (so the site was down for a few
seconds.)
This is the first time I got this error (AFAICS), but I''d like to resolve and
prevent it for the future.
From mongrel.log:
** Starting Mongrel listening at 0.0.0.0:foo
** Starting Rails with production environment...
**
2010 Nov 29
3
session active_record_store
Hi,
There doesn''t seem to be any previous posts about this problem, I must
be
setting things up wrongly at very basics...
Firstly, the problem... I can''t get session[] to persist with
active_record_store. I enabled (config.action_controller.session_store =
:active_record_store) in environment.rb and created the sessions table
at my MySQL database. When I do a session[:blah] =
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
2006 Jan 04
3
HTTP 500
Hi.
I am faced with a problem that has been described in other emails. The
proposed solutions don''t work for me, and as I am stuck with it now for
several hours, I ask here.
I am running RoR 1.0 and Ruby 1.8.2 on SuSE Linux 10.1 and WEBrick 1.3.1 and
following the tutorials in Agile Dev. With RoR.
Since a few changes all my requests return Http 500 Internal Server Errors.
The logs
2006 Mar 15
2
Session (stored in db) not working in testing mode
Hi,
I just switched from storing my sessions on disk to storing them in
MySQL. Changing environment.rb ''config.action_controller.session_store =
:active_record_store''. But now all my tests fail. I get the following
error:
1) Failure:
test_authorized_new(AdControllerTest)
[c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/depr
active_record_store sessions does not pass a :secret to #protect_from_forgery in Rails 2.0.0 Preview
2007 Oct 03
2
active_record_store sessions does not pass a :secret to #protect_from_forgery in Rails 2.0.0 Preview
After switching to active_record_store to host sessions, I now get the
following errors:
ActionController::InvalidAuthenticityToken in Pages#edit
Showing app/views/pages/edit.html.erb where line #5 raised:
No :secret given to the #protect_from_forgery call. Set that or use a
session store capable of generating its own keys (Cookie Session
Store).
Extracted source (around line #5):
2:
3: