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
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
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
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
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.
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
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