Hello guys,
I have a very big issue with Internet Explorer and sessions!
Indeed, since I migrated my whole application to rails 2.1.1 from rails
1.2.3, IE doesn''t keep session at all.
example:
[code]
# controller
def action1
session[:foo] = ''foo''
end
def action2
render(:text => "session[:foo] = " + session[:foo])
end
[/code]
Call action1 then action2.
If I use IE, session[:foo] will be empty after action2.
Everything works perfectly with all browsers but IE.
And obvisouly my Internet Explorer accept all cookies, all sessions with
lower security level etc...
I can also track what''s going on step by step because I store my
sessions in MySQL with active_record:
Actually, each time I call a new webpage (new action) with IE, rails
will automatically create a new session in the database with a new
session_id instead of taking the existing one. As usual, everything
works as intended with all other browsers.
I don''t know what to do anymore!
Down on my knees I beg you!
Help me please!
Thanks,
Mary
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
I tested script like yours in my IE and working fine here. you can check your development.log maybe it help you. good luck -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It''s really wired actually! Sometimes it works .. sometines it''s not! Sometimes IE will create a new session in my database for each new action sometimes it will keep the existing session :/ thx anyway! Rails Terrorist wrote:> I tested script like yours in my IE and working fine here. > > you can check your development.log maybe it help you. > > good luck-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I even created an example here: http://88.191.83.87:8080/test/action1 then http://88.191.83.87:8080/test/action2 Try with mozilla (work as intended) and then try with IE. Wired isn''t it ? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Marie Arago wrote:> I even created an example here: > > http://88.191.83.87:8080/test/action1 > then > http://88.191.83.87:8080/test/action2 > > Try with mozilla (work as intended) and then try with IE. > Wired isn''t it ?open your config/environment.rb UNCOMMENT IT: config.action_controller.session_store = :active_record_store and ADD it : config.action_controller.perform_caching = true -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
And check your environment.rb Have you change it, 1.2.3, to be 2.1.1 ??? RAILS_GEM_VERSION = ''1.2.3'' unless defined? RAILS_GEM_VERSION and open your Application.rb, make sure it is correct : class ApplicationController < ActionController::Base # Pick a unique cookie name to distinguish our session data from others'' session :session_key => ''_ProjectName_session_id'' Y Reinhart A P Blog : Teapoci.BlogSpot.Com -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you for all your answers and advices! I checked evrything and just added the performing cache :/ But as you can check with both URL. I still have the problem :/ Rails Terrorist wrote:> And check your environment.rb > > > Have you change it, 1.2.3, to be 2.1.1 ??? > RAILS_GEM_VERSION = ''1.2.3'' unless defined? RAILS_GEM_VERSION > > > and open your Application.rb, make sure it is correct : > > class ApplicationController < ActionController::Base > # Pick a unique cookie name to distinguish our session data from > others'' > session :session_key => ''_ProjectName_session_id'' > > > > Y Reinhart A P > Blog : Teapoci.BlogSpot.Com-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ok I found the problem! I fixed it! Thx! Marie Arago wrote:> Thank you for all your answers and advices! > > I checked evrything and just added the performing cache :/ > > But as you can check with both URL. I still have the problem :/ > > > Rails Terrorist wrote: >> And check your environment.rb >> >> >> Have you change it, 1.2.3, to be 2.1.1 ??? >> RAILS_GEM_VERSION = ''1.2.3'' unless defined? RAILS_GEM_VERSION >> >> >> and open your Application.rb, make sure it is correct : >> >> class ApplicationController < ActionController::Base >> # Pick a unique cookie name to distinguish our session data from >> others'' >> session :session_key => ''_ProjectName_session_id'' >> >> >> >> Y Reinhart A P >> Blog : Teapoci.BlogSpot.Com-- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sat, Sep 27, 2008 at 4:32 AM, Marie Arago <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Ok I found the problem! > > I fixed it!So what was the fix? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I have also same problem of session in ie so can you say me how have you solved it? Thanks, On Sep 27, 4:32 pm, Marie Arago <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Ok I found the problem! > > I fixed it! > > Thx! > > > > Marie Arago wrote: > > Thank you for all your answers and advices! > > > I checked evrything and just added the performing cache :/ > > > But as you can check with both URL. I still have the problem :/ > > > Rails Terrorist wrote: > >> And check your environment.rb > > >> Have you change it, 1.2.3, to be 2.1.1 ??? > >> RAILS_GEM_VERSION = ''1.2.3'' unless defined? RAILS_GEM_VERSION > > >> and open your Application.rb, make sure it is correct : > > >> class ApplicationController < ActionController::Base > >> # Pick a unique cookie name to distinguish our session data from > >> others'' > >> session :session_key => ''_ProjectName_session_id'' > > >> Y Reinhart A P > >> Blog : Teapoci.BlogSpot.Com > > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---