Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. What is the reason please help me! Thnaks and Regards, -Kumar Varma -- Posted via http://www.ruby-forum.com/.
Is one of your pages overwriting the values? You might try: <%= debug session %> In your main layout to watch what is happening to the session. ~ Ben On 4/27/06, Kumar <Kumar@gmail.com> wrote:> > > Hi to group! > > I am new to ROR! > > I am facing problems on sessions. > > First I created the one session variable. > > > after that I created the other one. > > after moving to three pages the session was destroyed automatically. > > > What is the reason please help me! > > Thnaks and Regards, > -Kumar Varma > > > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Ben Reubenstein http://www.benr75.com
Ben Reubenstein wrote:> Is one of your pages overwriting the values? You might try: > > <%= debug session %> > > In your main layout to watch what is happening to the session. > > ~ Ben > > On 4/27/06, Kumar <Kumar@gmail.com> wrote: >> >> >>Dear Sir! Please resoleve this problemI tryed with this in the main layout In First Page --- !ruby/object:CGI::Session data: &id001 flash: !map:ActionController::Flash::FlashHash {} dbman: &id002 !ruby/object:CGI::Session::PStore hash: *id001 p: !ruby/object:PStore abort: false filename: ./script/../config/../tmp/sessions//ruby_sess.80c276a05c5f63ec rdonly: false table: transaction: false dbprot: - *id002 new_session: true session_id: 85a794d70db26e657042b6cf5e676cbb write_lock: true In Second page also same but we are creating other session is i.e sessiuon[:username] In third page --- !ruby/object:CGI::Session data: &id001 :username: admin :checking: flash: !map:ActionController::Flash::FlashHash {} dbman: &id002 !ruby/object:CGI::Session::PStore hash: *id001 p: !ruby/object:PStore abort: false filename: ./script/../config/../tmp/sessions//ruby_sess.2f5da197f2fc548f rdonly: false table: transaction: false dbprot: - *id002 new_session: false session_id: 62971ba072a87e78cbd7f0ee2630ab79 write_lock: true Thanks and Regards, Kumar>> >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > Ben Reubenstein > http://www.benr75.com-- Posted via http://www.ruby-forum.com/.
Kumar wrote:> Ben Reubenstein wrote: > >> Is one of your pages overwriting the values? You might try: >> >> <%= debug session %> >> >> In your main layout to watch what is happening to the session. >> >> ~ Ben >> >> On 4/27/06, Kumar <Kumar@gmail.com> wrote: >> >>> Dear Sir! Please resoleve this problem >>> > > I tryed with this in the main layout > > > In First Page > > > --- !ruby/object:CGI::Session > data: &id001 > flash: !map:ActionController::Flash::FlashHash {} > > dbman: &id002 !ruby/object:CGI::Session::PStore > hash: *id001 > p: !ruby/object:PStore > abort: false > filename: > ./script/../config/../tmp/sessions//ruby_sess.80c276a05c5f63ec > rdonly: false > table: > transaction: false > dbprot: > - *id002 > new_session: true > session_id: 85a794d70db26e657042b6cf5e676cbb> write_lock: true > > > > In Second page also same > > but we are creating other session is i.e sessiuon[:username] > > In third page > > --- !ruby/object:CGI::Session > data: &id001 > :username: admin > :checking: > flash: !map:ActionController::Flash::FlashHash {} > > dbman: &id002 !ruby/object:CGI::Session::PStore > hash: *id001 > p: !ruby/object:PStore > abort: false > filename: > ./script/../config/../tmp/sessions//ruby_sess.2f5da197f2fc548f > rdonly: false > table: > transaction: false > dbprot: > - *id002 > new_session: false > session_id: 62971ba072a87e78cbd7f0ee2630ab79 > write_lock: true > > Thanks and Regards, > > Kumar > > > > > > > >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> >> -- >> Ben Reubenstein >> http://www.benr75.com >> > > >I am having the same problem. I figured out it is due to having multiple rails apps on the same hostname mybox.mydomain.com. Each Rails app is overwriting the session variable of the other Rails app. Here is the solution. http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionOptions
> I am having the same problem. I figured out it is due to having > multiple rails apps on the same hostname mybox.mydomain.com. Each Rails > app is overwriting the session variable of the other Rails app. Here is > the solution. > > http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionOptionsI have the same problem but i''m working on localhost and i have only one started application. I don''t know why after visiting some pages, sessions values are destroyed. Help please! -- 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 -~----------~----~----~----~------~----~------~--~---