similar to: OSX Rails Session Issues

Displaying 20 results from an estimated 3000 matches similar to: "OSX Rails Session Issues"

2006 Feb 08
10
Sharing sessions between subdomains?
Hello, I know how to share sessions between subdomains in PHP. Can anyone please guide me as to how I can share sessions using Ruby? Where can I set the value of domain for which the cookie is set? I would like for a user to login on the home page and then go to blog.home.com and not have to login again. Any guidance/pointers are appreciated. Thanks''
2006 Jul 11
1
Dynamically setting the session domain?
Does anyone know a way to dynamically change the session_domain option of ActionController::CgiRequest? I want to have a login section on an index page (www.example.com) that takes a subdomain, username, password, authenticates, then redirects to http://#{subdomain}.mysite.com. I need to set the session_domain option (to the subdomain) dynamically so the cookie can be read when the user arrives
2006 Jul 03
3
Sharing Session Between Two Applications
Hi We have a rails application deployed and working fine. Along with this, we are planning to add "Opinion" forum. The url of the forum will be like http://forum.mymainsite.com Is it possible to share the session (that is, if the user is already logged in on the main site, he need not log in again on the forum section). Is it possible to add the ''opinion'' as a
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
2006 Mar 07
2
memcached and Joe Hosteny''s Salted Hash Login Generator
Hey, so - I''ve been fiddling about and fell in to use Joe''s simple-yet- painful SHLG (I shouldn''t complain... not at least I have time to produce one :)). I just recently plugged in memcache, and- it''s not preserving my login. I traced the execution and it sets the output of User.authenticate (a user AR object) into @session[''user'']
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
2008 Jan 21
13
has_many with different primary key
I''ve got quite the ActiveRecord challenge, any help would be appreciated. In my current project Companies can have many reviews. class Company < ActiveRecord::Base has_many :reviews, :as => :reviewable end However, my company table, I have two different IDs to identify my company. id - This is the typical id we use for normal stuff other_company_id - This is the id we use
2006 Jun 27
3
Decoding Unicode URLs Properly
Please help, I have an application I switched over to UTF-8, but I am unable to decode URLs with unicode characters in them properly. For instance, if I have "item=Pur%E9ed" as a parameter in my url, when it''s decoded by rails, it returns "Pur?ed" and not "Pur?ed". Is there an easy way to fix my controller to accept these characters properly?
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 Mar 09
4
cross domain cookies
Does anybody know how to access the domain of a cookie from inside rails? I am try to integrate phpbb forums into my site and one of the things phpbb does is store a cookie. The forums are at forums.domain.com and the site is www.domain.com so i needed to set the cookie domain in phpbb to just be ".domain.com" so both sites can access it. The trouble is when using cookies[] in rails,
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op. $ yes | sudo gem install cached_model Or, you can download cached_model and memcache-client (our zippy-fast memcache library, required) from: http://rubyforge.org/frs/?group_id=1266 I don''t have the README posted for making cached_model work online yet, so here it is: = CachedModel Rubyforge Project: http://rubyforge.org/projects/rctools/ == About
2006 Sep 29
5
Request URI Length Override
Please help, Does anyone know how to override the Mongrel request URI limits built in? I know it was set at a 512 byte limit, but my application will not work with this in place. Why do I need a larger limit? I''ve written a rails application that uses a bookmarklet to send large amounts of data from site to site. The only way to do this is (and keep it cross browser
2006 Feb 11
2
Session ID in a cookie?
I''ve been looking around for how to store the session ID in a cookie. The "Agile Web Development with Rails" books seems to indicate that this is done by default with Rails. But I don''t see a cookie being set in my browser. (yeah, they''re enabled) I poked through the RForum code to find something referencing "cookies" but nothing came up. Does
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
2007 Feb 19
2
Acts_As_Ferret Tutorial
Hey guys, I wanted to share with you guys a detailed tutorial I just finished this weekend for using Acts_As_Ferret. http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial I started using Ferret and Acts_As_Ferret a few weeks ago, and I learned so much that I wanted to give back to the community by writing up a helpful tutorial that covers all the key topics in one
2006 Feb 09
1
session cookie expiration
from the Agile Book, i see i can set the absolute session expiry time via: ActionController::CGIRequest::DEFAULT_SESSION_OPTIONS[:session_expires] however, I don''t see anything about what the actual default setting is when a session is created. also, is there a way to set the expiration to happen when the browser is closed? in PHP, this can be accomplished using
2008 Feb 09
1
how to check the config.action_controller.session options ?
when setting it in my environment.rb config.action_controller.session = { :session_key => ''_myapp_session'', :secret => ''3a64394bb895f1f05e0c07f71127d93d'' } I cannot get it back in the script/console .. :session_key=>"_session_id" !!! why ? >> ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS =>
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 May 02
2
Converting from UTF8 to ISO-8859-1 encoding
Please help, I have followed the rails wiki to convert my rails application to use UTF-8: http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings I am able to succesfully cut and paste Unicode characters from other page, successfully store and display unicode characters. However, my client actually wants ISO-8859-1 encoding, which I''m coming to realize is somehow
2008 Jul 17
2
We ain''t got no RSpec
Hey Guys, This last week on the Rails Envy Podcast we received an "interesting" voicemail. Jason encouraged me to make a remix, and I think you guys will appreciate what resulted. If you have a few minutes and need a good laugh, see here for the voicemail and the remix: http://www.railsenvy.com/2008/7/17/we-aint-got-no-rspec -Gregg -- Posted via http://www.ruby-forum.com/.