Edwin V. wrote:
> The next step is to store the login information in the session, but
> it seems that sessions won't work.
> 
> The full code of my extension can be found at Google Code: http://
> code.google.com/p/secure-pages/

I'm running from the 0.6.2 gem and doing something similar (see 
http://www.ruby-forum.com/topic/115871) but as of right now I'm just 
using a simple module with some tags, hoping to switch to using a 
dedicated page type like you are doing.

Thanks to your secure_pages_extension.rb file, this is now working for 
me:

def activate
  Page.class_eval { include MemberLogin }
  SiteController.class_eval { session :disabled => false }
end

Previously I was doing the following, which would not work:

SiteController.class_eval { session :on }


Are your issues because of your environment config? My file has the 
following set:

config.cache_classes = true
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
ResponseCache.defaults[:perform_caching] = false

Maybe your non-logged-in pages are cached, so you aren't seeing the 
logged-in versions? This is probably incorrect, as you seem to be having 
trouble saving/reading sessions in general, but its worth mentioning I 
guess.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to