Displaying 8 results from an estimated 8 matches for "howtochangesessionstore".
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
--
2006 May 23
2
additional fields in session DB table
I am using active record sessions and everything works fine. I am
integrating it with phpbb however so i need some extra fields populated in
the session table. In application.rb i put a before_filter to update the
session table
I have a model for the sessions
$ more app/models/session.rb
class Session < ActiveRecord::Base
set_primary_key "session_id"
set_table_name
2006 Mar 25
0
Session not working in testing mode
...ran rake
create_sessions_table to create the sessions table. But instead of just
using the standard table, I wanted something fancier. I would like to
know who is currently logged in, so I added the field user_id to the
sessions table. In the Rails wiki
(http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore) I read
that I could change the user_id in the sessions table by using
@session.model.user_id = @session[:user].id . model is a method
available when using active_record_store. This all works beautifully, at
least in development mode. However, the trouble starts when I run a
functional test. E...
2005 Dec 18
1
session temp files?
I''m running a simple WEBrick server for a small rails website. I probably
get less than 100 hits per hour. I just looked in /tmp on the server and
there are over 10,000 ruby_sess.* temp files containing:
" hash{"
flashIC:''ActionController::Flash::FlashHash{:
@used{
They''ve piled up so much that I can''t even rm -f ruby*. Bash complains
2006 Aug 16
5
too many SESSIONS?
I just notices my app was down, and in the log file were lots of these:
No space left on device -
../config/../tmp/sessions//ruby_sess.898b1cf95e14f8e3
So i figured that i had too many sessions. I went through and deleted
the sessions and then in a few minutes, the site was back up again.
Can anyone explain this?
Did I do the right thing?
Is there a way I can tell my app to accept more
2006 Aug 02
4
Disc quota exceeded when attempting to write session
Hi All,
When trying to write sessions file, I''m getting disc quota errors.
Looking into the sessions folder, I see:
-rw------- 1 www www 188 Aug 2 21:03 ruby_sess.d39a2c77b4750b72
-rw-r--r-- 1 www www 0 Aug 2 21:03 ruby_sess.d39a2c77b4750b72.tmp
I''m guessing the the tmp should not be there, as it does not show on
my dev setup.
I''m using rails (1.1.1)
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all -
I am trying to get rails to use memcache for sessions and fragment
caching. I''d also like to use the same connection for general caching of
this and that.
I''m following the instructions here:
http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore
and hitting a brick wall.
I''m using the new memcache-client since from what I''ve read it''s faster,
but it''s implementation is different enough that I can''t figure out how to
make it work with:
config.action_controller.session_store = :mem_cache_st...
2006 Jan 26
42
ruby script/generate scaffold Product Admin hangs
Hi
I am running Mac OX tiger with the installed ruby 1.8.2, and
mysql5 (I checked that it was running in preference). I
tried to run the various fixes recommended in agileweb. I am
stuck on page 57, script/generate scaffold...
> Could you paste in your database.yml file, from the
> "config" folder inside your Rails app? If you have any
> passwords entered there, you should