Hi Sijo Thanks for the info - I will look in to the @@ idea
>>In any case the data needs to be visible >> 'between' sessions as well. > > But this needs the data to be stored in D B it self. Is it? Yes - The data is currently in a table in the database - it is a table of rights users have under different conditions. These rights wont change for weeks on end, so reading them from the database every time the user tries to do something is silly. I want these rights to be kept in the memory of the server all the time. In other words - when the web server is started - get the rights from the database and keep them in memory forever (or until the server is restarted) Whenever a request comes in from a user - check the right against memory instead of against the database. Is the environment.rb and the production/development/test files executed every time a request comes in or only when the server starts up? If it is the latter I should be able to create variables there that are visible 'across' session? Regards Pieter -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

