search for: howtoworkwithsessions

Displaying 6 results from an estimated 6 matches for "howtoworkwithsessions".

2006 Feb 28
19
Session magic question
Greetings! I could really use some help understanding what Rails puts into the session store related to the objects it creates. I''ve found documentation on how _I_ can put / get info into it, but can''t find the docs on what _Rails_ puts into it. I''ve got a simple app that collects some data from the user, stores it in a db record, allows the user to edit it, display
2006 May 18
4
How do you delete a session variable?
Hi Let''s say we set session[:foo] = ''bar''. Now we want to remove the :foo key completely. How do you do that? Appearantly, session is a CGI::Session [1] instance, so it doesn''t have #delete like Hash. I tried: session[:foo] = nil But then debug(session) shows an empty :foo key. I''d like to remove that key, as my session is already pretty crowded. Is
2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
Ok, so I posted this on the ''ruby on rails'' newsgroup (http://groups.google.com/group/rubyonrails/browse_frm/thread/cfce770d3fbfbd1f/a51aad47e46e2adf#a51aad47e46e2adf) but didn''t get very far. Hopefully this community will be able to help or let me know whether this is a genuine rails bug. This is a lengthy post, but please bear with me. So, I am trying to cache
2005 Dec 21
3
Lazy Loading?
I''m having problems with what seems to be lazy loading behavior in Ruby on Rails. I have two objects in a parent-child relationship such as: class Order < ActiveRecord::Base has_many :items, :dependent => true end class Item < ActiveRecord::Base belongs_to :order end I put an instance of the Order object into the session using: session[:order] = Order.new
2006 Jun 12
14
Scope of a global
If I set a global can it be access from all instances of Rails (on the same application server)? By instances of Rails I mean for each user who use the application? Many thanks, K. -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
11
session error in rails 1.1
I keep getting this error in rails 1.1, does anybody know what it means? My site will be working fine, i do some more development, get a parse error, and then all of a sudden the page 404''s with the following error Session contains objects whose class definition isn''t available Remember to require the classes for all objects kept in the session. (Original exception: