Hi, guys: I want to use the session object in the rails, but the browser has disabled the cookie support. I store some string into the session obj, but I can''t retrieve the string value in another page. In there any solution to solve the problem? I have tried add the following code on Application_Controller to store my session into database, but it doesn''t work. I still can''t get the string value in the session obj. I have tried add the following code on Application_Controller to store my session into database. ActionController::Base.session_store = :active_record_store -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-Aug-31 16:38 UTC
Re: Can I use session obj without cookie support in browser?
On Tue, Aug 31, 2010 at 1:12 AM, GD <gongda.fan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I want to use the session object in the rails, but the browser has > disabled the cookie support. I store some string into the session obj, > but I can''t retrieve the string value in another page.Possibly helpful: http://oldwiki.rubyonrails.org/rails/pages/HowToMaintainSessionWhenCookiesAreNotAllowed -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi: Thanks your reply very much. But The "Hidden Field Session" project is not available. I think that is it possible to append the session_id on the URL, and my rails program can get the session object by the session_id sent from previous page? It is like the JSP to rewrite the URL and append the jsessionid. On 9月1日, 上午12時38分, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Aug 31, 2010 at 1:12 AM, GD <gongda....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I want to use the session object in the rails, but the browser has > > disabled the cookie support. I store some string into the session obj, > > but I can''t retrieve the string value in another page. > > Possibly helpful: > > http://oldwiki.rubyonrails.org/rails/pages/HowToMaintainSessionWhenCo... > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Sep-01 13:56 UTC
Re: Can I use session obj without cookie support in browser?
GD wrote:> Hi: > > Thanks your reply very much. But The "Hidden Field Session" project is > not available. > > I think that is it possible to append the session_id on the URL, and > my rails > program can get the session object by the session_id sent from > previous page? > > It is like the JSP to rewrite the URL and append the jsessionid.I would think so too. It amazes me that Rails can''t do this. PHP and JSP have both done it for ages. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.