Displaying 20 results from an estimated 30 matches for "session_opt".
Did you mean:
session_open
2009 Nov 12
2
request.session_options broken?
...uot;remember me" functionality for logging in
users with Rails 2.3.4. I''m trying to set the session expiration date
for some time in the future. After googling around a bit I found this
post which seems to address my problem:
http://squarewheel.pl/posts/3
My modifications to request.session_options are being ignored.
According to this discussion (
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f2e945a4b1ce3cf2/b2ba91b16a10fd0d?#b2ba91b16a10fd0d
) using request.session_options to modify your session cookie is
currently broken. Is that correct?
Thanks!
James
2009 Nov 05
0
config.action_controller.session_options[:cookie_only] = true
...s.org/2007/10/5/rails-1-2-4-maintenance-release
http://www.nessus.org/u?2f5b72e6
http://dev.rubyonrails.org/ticket/10048
http://www.nessus.org/u?1eeea9de
Solution :
Upgrade to Ruby on Rails version 1.2.6 or later and make sure
''config.action_controller.session_options[:cookie_only]'' is set
to
''true'' in the ''config/environment.rb'' file.
I checked my rails version: it is already 1.2.6. Then I un-comment
this line in environment.rb
config.action_controller.session_options[:cookie_only] = true
I got the follo...
2010 Jan 20
0
(2.3.5) ActionController::Base.session_options[:expire_after] + Error 422/Authenticity Token Issue
...efore, or can idiot-
check me in that hopefully it''s just something I''ve missed along the
way.
I need the application to automatically shut down an active session
after 15 minutes of inactivity. My understanding is that this is
accomplished, in 2.3.5, with ActionController::Base.session_options
[:expire_after].
In the code snippet below (currently in config/initializers/
session_store.rb), I''m forcing this behavior if RAILS_ENV isn''t
development (because in development I don''t want this going on - it''s
annoying to have to relog after making UI/CSS/...
2010 Jun 08
1
session_options[:secure] resets session_id on every request
I''m working on an ecommerce site (in Rails 2.3) and I added:
ActionController::Base.session_options[:secure] = true
to ~/config/environments/production.rb
Now, every time I add something to my shopping cart and navigate away I
get a new session_id (which essentially empties my shopping cart).
How can I get the continuity of my sessions back, while still having the
session_id get set over a...
2012 Jul 24
0
request.session_options[:id] accessiblity problem
I am having problem retrieving the value for variable
request.session_options[:id] from my controller. Though the same returns a
proper value when accessed through a view. I am not able to understand why
it is happening.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send emai...
2005 Dec 13
3
Forcing the session-id
We''re going to have problems keeping cookies across domains. We want
people to shop in one domain (e.g. "booksareus.com") and then checkout
on the same server securely under a different domain (e.g.
"greatbooks.com"). When we make the jump to the secure domain (the
checkout link) can we submit the user''s session ID along with it and
have it
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
2012 Dec 03
2
Rails 3.2 session id nil until next request
...I''m connecting to rails from an Air app and communicating with JSON only.
When the client sends a login request, the server makes sure the username &
password match, then it does session[:user_id] = user.id, creating the
session. But before I send back the login response,
request.session_options[:id] is nil, so I seem to have no way of telling
the client was his session id is.
I did manage to get the CSRF token sent with the login response, which the
client sends on subsequent requests. On these subsequent requests, the
session id is actually found in request.session_options[:id...
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
2006 Jun 16
0
rake spec controller test output hideus.
...ong",
"login"=>"newbob", "password"=>"newpassword",
"email"=>"newbob@mcbob.com"}, "action"=>"signup",
"controller"=>"user"},
@request=#<ActionController::TestRequest:0x24d6894
@session_options={}, @accepts=nil,
@symbolized_path_parameters={:controller=>"user", :action=>"signup"},
@query_parameters={"action"=>"signup"}, @host="test.host",
@cookies={}, @env={"REMOTE_ADDR"=>"0.0.0.0",
"REQUEST_URI&quo...
2006 Jan 17
10
ActiveRecord + memcache = cached_model
...:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''my_rails_app'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211''
session_options = {
:database_manager => CGI::Session::MemCacheStore,
:cache => CACHE,
:session_domain => ''trackmap.robotcoop.com''
}
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update
session_options
You will need separate namespaces for production...
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
...:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''my_rails_app'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211''
session_options = {
:database_manager => CGI::Session::MemCacheStore,
:cache => CACHE,
:session_domain => ''trackmap.robotcoop.com''
}
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update
session_options
You will need separate namespaces for production...
2005 Dec 25
1
How to use mem_cache_store?
...ache_options = {
:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''ruby-forum.com'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211''
session_options = {
:database_manager => CGI::Session::MemCacheStore,
:cache => CACHE,
:session_domain => ''ruby-forum.com''
}
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update
session_options
<<<<<<<<<<<<<<<<<<...
2009 May 12
1
Running rake test:units yields DEPRECIATION WARNING: Disabling sessions for a single controller...
When I run my rake test:units I get the following:
DEPRECATION WARNING: Disabling sessions for a single controller has
been deprecated. Sessions are now lazy loaded. So if you don''t access
them, consider them off. You can still modify the session cookie
options with request.session_options.. (called from C:/Users/Wayne/
Documents/Aptana Studio/chores/app/controllers/
application_controller.rb:10)
Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader
Started
EEEE.....EEEEEEEE.EEEEEEE
Finished in 2.086 seconds.
What am I doing that has been deprecated?...
2009 Jul 02
2
Big help with shared subdomains cookies
Hi, i need that all the subdomains of an app (using subdomain_fu) use
''.domain.com'' as domain for all cookies.
I''ve set ActionController::Base.session_options[:domain] = ''.domain.com''
and it works...for just the session... how can i set this also for
common cookies ? (created with cookies[:name] = {:value => value,
:expires => 6.months.from_now} )
--
Posted via http://www.ruby-forum.com/.
2006 Feb 12
3
memcache-client/cached_model help
...0_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
:readonly => false,
:urlencode => false
CACHE.servers = ''127.0.0.1:11211''
session_options = {
:database_manager => CGI::Session::MemCacheStore,
:cache => CACHE,
:session_domain => ''www.eztrip.com''
}
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update session_options
I also changed a few models to extend CachedModel but am having
trouble g...
2009 Feb 19
1
Switching to ActiveRecord Session Store
...ers''
#}
but I immediately get server failures because the cookie store needs
them and is still active. I also tried replacing the
config.action_controller.session_store = :active_record_store line
with :
ActionController::Base.session_store = :active_record_store
ActionController::Base.session_options[:expire_after]=2.years
after the initializer block in environment.rb, but it apparently had
no effect, still the cookie_store turns on.
So, any suggestions or guidance appreciated.
ps. The reason I''m trying to switch is that I''m trying to get Facebook
Connect to work via Fa...
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to
login if a different subdomain is accessed. I have found a couple rails
"solutions", but none of them seem to work:
# development.rb
1. ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key]
= ".localhost"
2. ActionController::Base.session_options[:key] = ".localhost"
Does anyone have a way that works?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you ar...
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical
impact of whether choosing memory-based tables in MySQL or using memcached.
I got this far on my own:
It seems that MySQL uses the NDB engine for transaction-safe memory access
in a cluster. the memory storage engine seems to be faster but not
synchronizable by any means in a cluster. memcached seems to be ultimately
fast
2006 Jul 21
3
Help me run rails on apache on Linux Fedora
...ed yesterday by putting puts statements in
the code, printing interesting things and following along to
see what was blowing up. I followed it to:
/usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb
And in particular the the lines:
request, response = ActionController::CgiRequest.new(cgi, session_options), ActionController::CgiResponse.new(cgi)
prepare_application
ActionController::Routing::Routes.recognize!(request).process(request, response).out(output)
It seems that both request and response are nil, at least I get I 500 error
if I try to access them in some way.
Any help would be apprecia...