similar to: keep sessions while switching domains

Displaying 20 results from an estimated 10000 matches similar to: "keep sessions while switching domains"

2007 Jul 04
2
timeout error
Hallo, I am donig a rather long script execution via script/runner (quering a xmlrpc webservice). After about 5 minutes the execution stops raising the following error. /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:47: / usr/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill'': execution expired (Timeout::Error) from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout''
2009 Feb 19
1
Switching to ActiveRecord Session Store
I''m having a problem switching from cookie sessions (the default) to active record sessions. I''ve created the sessions table via the rake task, uncommented the line config.action_controller.session_store = :active_record_store in my environment.rb file, cleared out my browsers cookies, restarted the server (natch), but still the it''s using cookie_store instead of
2007 Mar 01
4
Cookie based session management problems
Edge has a change in default behaviour where sessions are stored as cookies instead of in the file system. This was a pleasant surprise when I synced up, fired up my app, and nothing worked. Ah, life on the edge. I''m sure I''m just missing something, but I can''t get sessions to survive the first redirect. I added the following code to environment.rb, based on
2011 Mar 27
2
LinkedIn still not working?
To clarify the issue I posted earlier: I am on OS X 10.6.7. Trying to use Mechanize to log in to LinkedIn. As others have posted about in the past, when I submit the form it kicks me back to the LinkedIn landing page, and does not log me in. I read the earlier discussion of the issue that mentioned how cookie values were being improperly dequoted when stored. But I thought that issue was fixed.
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
2009 Oct 13
1
config.action_controller.session[:secret] vs protect_from_forgery :secret
What I want to do is share the same session across many Rails applications. All of them are using Rails 2.2.2. I know that, to share the session, it''s (supposedly) just a matter of sharing the same key and secret among the apps, like this: config.action_controller.session = { :session_key => ''_apps_session'', :secret =>
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 =>
2012 Apr 25
8
showing error (gsub) when switching from session to cookies
I am newbie to rail. Trying to develop social networking site so working with railspace application. Everything is working fine but I stuck in the problem when i am giving the authorization tocken to the user to remember him/her. My Error and controller code is below Error:- private method `gsub'' called for 4:Fixnum C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in
2008 Jan 03
1
help - updated from 1.2.5 to 1.2.6 and getting undefined method 'session=' for ActionController::base
i start the server but it exits right away, I ran the rake to update and changed the version string in config.rb. Any thoughts on this matter would be appreciated. i imagine that it has something to do with the session, but i am not able to figure it out. my config/config.rb has the following config.action_controller.session = { :session_key => ''c3_rails_session'',
2007 Oct 03
2
active_record_store sessions does not pass a :secret to #protect_from_forgery in Rails 2.0.0 Preview
After switching to active_record_store to host sessions, I now get the following errors: ActionController::InvalidAuthenticityToken in Pages#edit Showing app/views/pages/edit.html.erb where line #5 raised: No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store). Extracted source (around line #5): 2: 3:
2008 Sep 14
0
How to get session's cookie string
Hi,everyone! I have a problem: After using session[:foo]=foo change my session, I want to know what the new "session_key" cookie value would be before I response. I tried session.to_s and session.encode but didn''t work. Thanks in advance:-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2007 Jul 07
0
[patch] trunk markaby fix
so i guess the parser changed or something.. -------------- next part -------------- Index: camping.rb =================================================================== --- camping.rb (revision 194) +++ camping.rb (working copy) @@ -7,7 +7,7 @@ c=self/c;c="//"+ at env.HTTP_HOST+c if c[/^\//];URI(c)end;def/p;p[/^\//]?@root+p : p end;def errors_for o;ul.errors{o.errors.each_full{|x|li
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 Aug 20
0
Facebook cookies and cross domain sessions
Hi, I wonder if can quiz anyone on how to solve a problem. I use our Facebook app to take payments so we have to access our app outside of the Facebook Canvas for a few controllers (and only minimally). We have a system working fine and we have a token based login to ensure its the same user on the external pages. The problem is we want to perform an action, set some flash messages and
2007 Jul 11
1
Session Expiration Problem: How to keep a user logged in for
How do I keep the Rails session from expiring when the browser exits? I would ideally like the user to be logged for a few days (e.g. 2 weeks). Do I use the Rails "session" or "cookies"? Also, my understanding is that session[:session_expires] doesn''t work. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
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 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''
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 08
2
Rails 2.3.9 breaks sessions with Active Record or Memcache store
A Rails 2.3.9 app with Active Record or Memcache session store will never send the session ID cookie to a client if the client doesn''t send any HTTP cookies in its requests. Rails integration tests didn''t catch this because they always send the HTTP_COOKIE header, even if it''s empty. This is a huge bug, as it can break keeping sessions on sites which don''t set
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my RoR app and I keep getting: The page you were looking for doesn''t exist. You may have mistyped the address or the page may have moved. I load the program to the cgi-bin directory in its own folder /cgi-bin/ fump/ In the /public folder of my app I have the following .htaccess file: # General Apache options