Re: [Radiant] Sessions in Radiant Help

2007-11-17 Thread Erik van Oosten
You can enable sessions for a particular extension by doing something like this: class YourExtension Radiant::Extension def activate YourController.class_eval { session :disabled = false } end end This works on Radiant 6.0.3. I found this on the mailing list. I do not think this is

[Radiant] Sessions in Radiant Help

2007-11-16 Thread Maged Makled
Hey all, I know this discussion has taken place before but I still can't get my hands around it. I'm using radiant with the Rails_support extension which works great with radiant for the content. The problem is when I try to use the session inside that app in the extensions, The session

Re: [Radiant] Sessions in Radiant Help

2007-11-16 Thread Jeff Dean
I believe that this is because of a bug in rails, and not radiant. The SiteController has session :off, and adding session :on in your controllers doesn't seem to do anything. The only way I know to change this is to actually go into SiteController and comment out that line. I've seen

Re: [Radiant] Sessions in Radiant Help

2007-11-16 Thread Maged Makled
Jeff Dean wrote: I believe that this is because of a bug in rails, and not radiant. The SiteController has session :off, and adding session :on in your controllers doesn't seem to do anything. The only way I know to change this is to actually go into SiteController and comment out that

Re: [Radiant] Sessions in Radiant Help

2007-11-16 Thread Jeff Dean
Here's what I did: gem install --include-dependencies radiant radiant myapp cd myapp [change database.yml] rake db:bootstrap rake radiant:freeze:edge rake radiant:update rake db:migrate [create extension...] Now you'll have a full copy of radiant's source code in your vendor/ radiant directory.

Re: [Radiant] Sessions in Radiant Help

2007-11-16 Thread Maged Makled
Jeff Dean wrote: Here's what I did: gem install --include-dependencies radiant radiant myapp cd myapp [change database.yml] rake db:bootstrap rake radiant:freeze:edge rake radiant:update rake db:migrate [create extension...] Now you'll have a full copy of radiant's source code in

Re: [Radiant] Sessions in Radiant Help

2007-11-16 Thread Jeff Dean
I haven't dealt with that before, but if I were to do it, I would: Determine what I meant by expired (let's say 3 days for example) Write a rake task that deletes the session Write a cron script to run it nightly after the database backup My rake task would probably look like: namespace :db