Displaying 20 results from an estimated 30000 matches similar to: "ActiveRecordStore: Where is the session id generated?"
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 Jul 12
5
2 subdirectories 1 controller?
Hi,
I''d like to create the following setup with RoR:
www.mywebsite.com/subdir1/order/create
www.mywebsite.com/subdir2/order/create
I''d like both urls to call the same action in the same controller. How can
I do this? I know this may be complicated, but I''m prepared to go a long
way.
Shimon
-------------- next part --------------
An HTML attachment was scrubbed...
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
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
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"
2006 Jul 28
8
Building a Search Page as part of CRUD
I''ve been experimenting with Rails over the past couple of days and
have come across something that seems harder than it should be. In
previous frameworks I have used (WebObjects, php) a full search page
(which leads into a list view populated with search results) was part
of the CRUD that was either dynamically or statically created after
specifying table/object schema. In
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 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
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],
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/.
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
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
2007 Dec 30
1
restful_authentication plugin + session timeout + single login session?
Hi,
I am using restful authentication plugin
1) I was wondering if there is a way to do a session timeout using the
restful_authentication.
How do I hack it to get the behaviour I need?
2) On top of that, I may need to ensure that a particular user can
only login from a single PC. If the user is already logged in at a PC
and attempts to login from another PC, the session in which he signs
in
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
2009 Apr 20
11
manual access to session data outside of request?
So, given a sessionID, I have need to read and write the session stored
information ''manually'', from _outside_ an actual Rails
request/controller.
Readers, I know your first response may be to tell me I don''t really
want to do that. Trust me though, I really do, it makes sense for me in
my case.
I know this wouldn''t work if you''re using the new cookie
2007 Jun 08
0
problem with rake db:sessions:clear and session_table_name
The comments in:
actionpack/lib/action_controller/session/activerecord_store.rb
document this method for changing the session table_name:
# You may configure the table name, primary key, and data column.
# For example, at the end of config/environment.rb:
# CGI::Session::ActiveRecordStore::Session.table_name =
''legacy_session_table''
#
2006 Mar 15
2
Where are the session objects stored in the filesystem on the server?
Using all default options, where would I find the session objects on the
server side in the file system?
Thanks
Daniel
2006 Jan 12
1
tc class class id problem Limitation
Hello,
I have been working on tc class . But when the classid reaches 5 digit ,
it DOES NOT ACCEPT THAT ...
see the example below ::
tc class add dev eth0 parent 10:36 classid 10:13310 cbq bandwidth 10Mbit
rate 32Kbit allot 1514 weight 3.2Kbit prio 5 maxburst 20 avpkt 1000 bounded
See the bold digit !! this command doesn''t work , but if i use with 4
digit then it works :
tc class
2007 Jan 15
2
Backgroundrb keeps spawning processes
Hi!
I''ve just a created a really simple rails scheduled worker for
backgroundrb to start playing with :
class SessionCleanerWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
logger.info "SessionCleaner> started"
CGI::Session::ActiveRecordStore::Session.destroy_all( [''updated_at
<?'', 120.minutes.ago] )