Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 07:50 UTC
Updated:
20 Jul 2026 at 20:04 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedYeah, I've thought about this somewhat. It's actually a really narrow cache for a very specific use-case, and that may not be quite ideal. The problem is, making it more generic is a pretty big can of worms.
I'll ponder it. There are reasons why I've thought bout changing it...having a wizard that can have temporary data cross multiple sessions is valuable, but removing that automation is tricky. It may need to be a separate system with similar goals.
Comment #2
joachim commentedWhat about just storing the cache ID in the session, so the wizard takes responsibility for knowing the cache ID -- then there's no session assumption within the cache system? That doesn't seem like a huge change to me, but then again I've only glanced at this :)
Comment #3
tema commentedHere's my "quick and dirty" solution. Every wizard extends this class to use its own session key. Works for PHP5.3+ only.
I'm new to Ctools and PHP OOP, so please correct me if I'm doing something wrong.
Comment #4
scottalan commentedAny updates on this one. I'm running into an issue now that I think falls under this same category.
When using ctools to create a multi-step form with the wizard I'm noticing something odd. I'm using ctools_object_cache. When I run the wizard without using a modal (ajax) it uses the same session_id throughout. Meaning, each time session_id() is called it returns the same $sid. When I run the wizard using the modal a new session_id is generated for each step of the wizard. This generates multiple entries in the {ctools_object_cache} table vs just clearing out the same object cache for each step and then rewriting it. I'm confused because there shouldn't be a difference using ajax or not. i've stepped through both the object-cache.inc and session.inc and nothing is standing out as far as why the session is regenerated using ajax and it's not being regenerated without. Thanks
ctools - 7.x-1.4
Open Atrium Profile
Comment #5
japerryDrupal 7 is no longer supported, closing.