Hi, I am developing a site with rails 2.1.2. restful_authentication is used. I can log in with Firefox but not with IE or Safari. I checked the log and found that session ID changes every time for IE. Why does this happen? Thanks. Sam -- 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 -~----------~----~----~----~------~----~------~--~---
Sam Kong wrote:> Hi, > > I am developing a site with rails 2.1.2. > restful_authentication is used. > > I can log in with Firefox but not with IE or Safari. > I checked the log and found that session ID changes every time for IE. > > Why does this happen? > > Thanks. > > SamI found out the cause of the problem. In my development server, the site was mapped to a host name that includes an underscore(_). It caused the problem. I found it at http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_20590538.html. Thanks. Sam -- 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 have a very similar question. I have an authentication module where I print out the session.session_id and it will look like this: BAh7CDoMY3NyZl9pZCIlZDAzYTUzMjEyNzgxYjY1NGVkNzRjOGUwYWMzMmIz N2QiDnJldHVybi10byIGLyIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6 Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--02b20c5ea458a0a9f5a42e248d83f2438d29f720 Then when I print out the same session.session_id in the next method called it bloats to this monstrosity: BAh7CjoSY2hhbGxlb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XNoewAGOgpAdXNlZHsA--b8530fbb05eb97cfa9bc2f825be98190538c45ff Any ideas what''s causing this? Sam Kong wrote:> Sam Kong wrote: >> Hi, >> >> I am developing a site with rails 2.1.2. >> restful_authentication is used. >> >> I can log in with Firefox but not with IE or Safari. >> I checked the log and found that session ID changes every time for IE. >> >> Why does this happen? >> >> Thanks. >> >> Sam > > I found out the cause of the problem. > > In my development server, the site was mapped to a host name that > includes an underscore(_). > It caused the problem. > > I found it at > http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_20590538.html. > > Thanks. > > Sam-- 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 -~----------~----~----~----~------~----~------~--~---
Rails 2 uses cookie based sessions by default. You''re looking at everything you''ve stored in your session. On Nov 13, 2:48 pm, Clem Rock <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I have a very similar question. I have an authentication module where > I print out the session.session_id and it will look like this: > > BAh7CDoMY3NyZl9pZCIlZDAzYTUzMjEyNzgxYjY1NGVkNzRjOGUwYWMzMmIz > N2QiDnJldHVybi10byIGLyIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6 > Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--02b20c5ea458a0a9f5a42e248d83f2438d29f720 > > Then when I print out the same session.session_id in the next method > called it bloats to this monstrosity: > > BAh7CjoSY2hhbGxlbmdlX2tleSIB90JBaDdDRG9NWTNOeVpsOXBaQ0lsWkRB > ellUVXpNakV5TnpneFlqWTFOR1ZrTnpSak9HVXdZV016TW1JegpOMlFpRG5K > bGRIVnliaTEwYnl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>> I am developing a site with rails 2.1.2. > >> restful_authentication is used. > > >> I can log in with Firefox but not with IE or Safari. > >> I checked the log and found that session ID changes every time for IE. > > >> Why does this happen? > > >> Thanks. > > >> Sam > > > I found out the cause of the problem. > > > In my development server, the site was mapped to a host name that > > includes an underscore(_). > > It caused the problem. > > > I found it at > >http://www.experts-exchange.com/Web_Development/Web_Languages-Standar.... > > > Thanks. > > > Sam > > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
How would I isolate just the session_id or is there really such a session_id that doesn''t change state w/ each action of a user session? Jeff Emminger wrote:> Rails 2 uses cookie based sessions by default. You''re looking at > everything you''ve stored in your session. > > > On Nov 13, 2:48�pm, Clem Rock <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
Clem Rock wrote:> How would I isolate just the session_id or is there really such a > session_id that doesn''t change state w/ each action of a user session? > > > Jeff Emminger wrote: >> Rails 2 uses cookie based sessions by default. You''re looking at >> everything you''ve stored in your session. >> >> >> On Nov 13, 2:48�pm, Clem Rock <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Are you stroing an entire object in that session or just the id? I recently switched from rails 1.2.x to 2.0 and found that session data is handled differently between the two version. In rails 1.2.X. I could store an entire object but in 2.0 I can store only a limited amount of data in the session variable and one indication that you are storing an object is that large hash that you see in your example. I solved this problem by create several session variables that hold only id''s - an id for a normal user, one for an administrator, etc. Hope this helps, -S -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
it''s a bad idea to store actual objects in the session - just store an ID if possible. On Nov 13, 4:56 pm, Shandy Nantz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Clem Rock wrote: > > How would I isolate just the session_id or is there really such a > > session_id that doesn''t change state w/ each action of a user session? > > > Jeff Emminger wrote: > >> Rails 2 uses cookie based sessions by default. You''re looking at > >> everything you''ve stored in your session. > > >> On Nov 13, 2:48 pm, Clem Rock <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Are you stroing an entire object in that session or just the id? I > recently switched from rails 1.2.x to 2.0 and found that session data is > handled differently between the two version. In rails 1.2.X. I could > store an entire object but in 2.0 I can store only a limited amount of > data in the session variable and one indication that you are storing an > object is that large hash that you see in your example. I solved this > problem by create several session variables that hold only id''s - an id > for a normal user, one for an administrator, etc. > > Hope this helps, > > -S > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 13, 3:22 pm, Clem Rock <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> How would I isolate just the session_id or is there really such a > session_id that doesn''t change state w/ each action of a user session? >not sure... i''ve never had reason to use the session_id. i just use my properties as before, e.g. "session[:user_id]" --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---