Tags:
create new tag
view all tags

TWiki SubSystems

Data Storage

ApprovingRegistrations needs to store its confirmation codes somewhere so that it can match up a confirmation with the registration that initiated it.

Where should I store data for this? Am thinking that it should go in a topic pub directory - but where? Under the TWiki web? Which topic? This must be a problem faced by other TWikiSubSystems... if it were a plugin then it might seem obvious where to put them: in pub/TWiki/XPlugin/ - but in this case its not so because the data is not public: confirmation codes must be keep secret until the user confirms.

I'd really like an answer to this soon as I am building this in the next few hours.

-- MartinCleaver - 02 Oct 2004

TWiki.TWikiPlugins#RecommendedStorageOfPluginData should give you the answer. Although not a Plugin, the TWiki.ApprovingRegistrations documentation topic also has a pub dir.

You can obfuscate file name, for example with a one way hash (as has been done in the HeadlinesPlugin)

-- PeterThoeny - 05 Oct 2004

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-10-05 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.