Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6131437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:58:31+00:00 2026-05-23T16:58:31+00:00

I really need help on this. I’m developing a TiddlyWiki to act as my

  • 0

I really need help on this. I’m developing a TiddlyWiki to act as my organization’s navigation tool for finding files on our extremely slow and cumbersome internal website/server.

Problem: Some of the options TiddlyWiki saves to a cookie apparently conflict with the internal website’s own cookie options. The TiddlyWiki has to be hosted on / loaded from the internal website and so its cookie has the same url/name as the internal website. Various useful TiddlyWiki plugins leave cookies that either stop one from being able to upload anything to the internal website or even prevent it from opening at all.

Telling every user of this site to delete their cookies after viewing the website is not an option.

I can’t get access to the contents of the cookie because our information management permissions process is slow, complicated, and doesn’t even understand my problem.

I’ve done many things to try to solve this:

I used the CookieManager plugin and set it to disallow any cookies, but a cookie was still being dropped.

I tried disabling plugins, re-uploading, and testing. After getting rid of several useful plugins, I was at least able to still access the internal website. However, I would have to disable the advanced search plugin in order to fix the issue with not being able to upload to the internal site. I really need advanced search since it both provides some of the visitor/editor segregation and also is one of the main selling features of using TiddlyWiki for my organization.

I tried renaming the options in the advanced search plugin (in particular) to names that would probably not be used as cookie options by our internal site. This didn’t seem to work.

What does work is it manually edit the TiddlyWiki source code to comment-out the innards of the saveCookie function:

function saveCookie(name)
{
//  var cookies = {};
//  for(var key in config.options) {
//      var value = getOption(key);
//      value = value == null ? 'false' : value;
//      cookies[key] = value;
//  }
//  document.cookie = 'TiddlyWiki=' + String.encodeHashMap(cookies) + '; expires=Fri, 1 Jan 2038 12:00:00 UTC; path=/';
//  cookies = getCookies();
//  for(var c in cookies) {
//      var optType = c.substr(0,3);
//      if(config.optionHandlers[optType])
//          removeCookie(c);
//  }
}

My problem, though, is that this has to be done after every upgrade of the TiddlyWiki template, which I sometimes need to do after going through the copy/paste/file-rename steps necessary for Windows to allow TiddlyWiki to save. (These steps often screw up the TiddlyWiki template so that it doesn’t think the TiddlyWiki file is valid. It will then refuse to save changes until I upgrade.)

I don’t mind doing this manually so much. It’s a hassle, but it doesn’t take very long. I can’t expect any of the other members of our website team to do it, though, and I need to have our TiddlyWiki in a state that it can be maintained/updated without me.

I tried making systemConfig file like this:

//{{{
function saveCookie(name) { }
//}}}

I thought/hoped it would overwrite the function even when it’s intact in the original source code. If it does, it doesn’t do it before the TiddlyWiki drops a cookie that screws up [the ability to access] our internal website. I further tried inserting a TiddlyWiki version of the first answer from https://stackoverflow.com/questions/595228/how-can-i-delete-all-cookies-with-javascript . This causes TiddlyWiki to freeze. It throws up a stack overflow alert.

I really need help on this since I don’t know what else to do, and this is an issue that could possibly jeopard the use of TiddlyWiki by my organization.

Thanks,

Dutch

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:58:31+00:00Added an answer on May 23, 2026 at 4:58 pm

    I also asked this question on the TiddlyWiki Google Groups (http://groups.google.com/group/tiddlywiki/browse_thread/thread/b33c696a628e4606) and got several answers.

    I was pointed to http://mptw2.tiddlyspot.com/#HijackingHowto, which shows how to redefine core TiddlyWiki functions to, for example, change their behavior under certain conditions.

    Most of it was far more than I needed to solve this problem, but just seeing how they redefined their core functions gave me a solution.

    The only JavaScript I know I’ve picked up while tinkering with
    TiddlyWiki, so I don’t fully understand why what I have now works
    and what I had before didn’t, but here’s the code that will completely
    kill cookies (and again, it should be inside a plugin tagged systemConfig) :

     //{{{ 
     window.saveCookie = function(name) { } 
     //}}}
    

    I was thinking it might have something to do with the core TiddlyWiki code running at
    a level where all the declared functions are being assigned to window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really need your help with this. We are planning on developing a real-time
I really need help on this one. I am having a simple login form
Sorry to bother again, but I really need help transforming this Python2 code into
I really need your help for this. I am relatively new to programming and
I really need some help with this as I have been trying to fix
Afternoon all, I really need your help as this is a Nightmare! I was
I really need help on this because I lost my hopes to correct the
I really need some help as this is driving me nuts! I need to
sorry if you'll find this question stupid, but I really need help. Here's some
I really need help getting this query right. I can't share actual table and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.