Displaying 20 results from an estimated 2000 matches similar to: "ActiveRecordStore session.id"
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 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 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
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''
#
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 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/.
2006 May 17
0
session_options/session
How do I display, in breakpointer for example, session.session_key or
session.session_expires ??
The only one that works is session.session_id for some reason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060517/d99e0837/attachment-0001.html
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
2007 Jan 26
0
Problems with assert_select in integration tests
I''ve been battling with assert_select in my integration tests for
several evenings now. I''m testing a multi-step form, and after
submitting the first step, my assert_selects fail on the attempts to
find the form on the next page. However if I print out the response
object, it has the exact text of what I''m trying to match.
Here is the complete integration test. The
2009 Mar 30
3
Great discrepancy between Google Analytics and own counter
Got Google Analytics running on one of my websites. Google defines a
pageview as the most occuring event. Every refresh, every link clicked
to a different part of the page, even loading from cache is an
additional pageview
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=57164
Now it should be known that GA is JS based, and will report directly to
Google from the
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
2004 Aug 06
0
winbindd PANIC: smb_xmalloc: malloc fail
Windows 2003 native mode
AIX 5.1 gcc 2.9
MIT kerberos 1.3.4 pre-compiled binary for AIX
openldap 2.1.30
samba 3.0.5
The nmbd, smbd daemons appear to be running without issue.
winbindd will abort every time with:
smb_xmalloc() failed to allocate 2534319874 bytes
PANIC: smb_xmalloc: malloc fail.
===============================================================
INTERNAL ERROR: Signal 6 in pid 32470
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 16
1
Session state using ActiveRecord store
Hello everyone,
I''m a noob to RoR, and have been trying to find an answer to a problem I
am having.
The issue is that I would like to use ActiveRecord session store. I''ve
uncommented the line out of the environment.rb file that reads:
config.action_controller.session_store = :active_record_store
I''ve created the table for the session its structure is as follows:
2010 Mar 04
0
Uploadify authentication problem
I''m trying to use Uploadify in my project. Everything works in my
machine, locally. The problem is when I use the same code in my
production environment.
When I try to upload a photo, it returns an error "HTTP 401", but there
are no errors in the log.
Rails(2.3.5)
Uploadify(2.1.0)
Here is my FlashSessionCookieMiddleware where the problem with the Flash
authentication shoud be
2010 Sep 09
1
406 Not Acceptable with swfupload
---------flash_session_cookie_middleware.rb
require ''rack/utils''
class FlashSessionCookieMiddleware
def initialize(app, session_key = ''_session_id'')
@app = app
@session_key = session_key
end
def call(env)
if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave) Flash/
req = Rack::Request.new(env)
params =