• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

... there's no reason to keep them for one year.

See the variable COOKIE_EXPIRY_TIME in pub/TWiki/TWikiJavascripts/twiki.js

MD

If Session cookie means forgotten when you close the browser than I disagree. It is essential that cookies that relates to the edit window size and the twisty for attachment is the same as I changed it to last time.

KJL

No, you can't rely on cookies to be still there. They are no good long-term storage.

If you want to have persistent user preferences then put them into your home topic. This will have the advantage that your settings are the same from whereever you logged in with whatever browser you use.

MD

What is the question exactly? Do you suggest to keep the user settings or do you want to throw them away?

AC

MD. We used to have the edit window size only defined by the user setting. Now it is stored in a cookie. And that works great in PatternSkin. And we should not loose that. We are not talking long term storage of anything critical here. We are talking about a nice feature that helps the user and which I really appreciate. And should the cookie be lost because I decide to clean all temporary data in my browser than it is not the end of the world. It just means that I resize the window again next time.

I do that all the time when I resize the browser windows. But as it works now - in 95% of the time the edit window size and the state of the edit help twisty is how I normally want it and I love that feature.

At work - if I change to another computer like e.g. in a meeting room then the cookie in that computer fits with that screen size. Again exactly what I want in 95% of the time. And when I need to adjust I just hit the small arrows in the lower right of the window and I have a new size. Before you had to edit your personal prefs in your Main home page and that was a pain and something you rarely did.

No - the feature works exactly as it should now.

KJL

I agree, and tend to discard this entry.

AC

Oh I see now. That's a quite nice feature of PatternSkin to allow one to adjsut the height of the textarea in edit mode. Though, I'd prefer the textarea to be just the right height without any user interaction. Have seen that javascript code on bloglines or blogger...

On the other hand I may like to resize textareas in forms too.

While I agree that the use case you outlined above KJL is reasonable, the case may be different for twisties, at least some.

So: for now we have remeber="on" and remember="off" for twisties. I added as twisty to the twikiBroadcastMessage and want its state to be remembered, but be reset when the user logs in again. How can I do that without forcing all (twisty) cookies to be session cookies? Any idea?

MD

With the current implementation you would need to add javascript to the login page that removes the pref.

AC

Ok, I will do that. Thanks for the hint.

MD

ItemTemplate
Summary cookies, i.e. twisty cookies should be session cookies
ReportedBy TWiki:Main.MichaelDaum
Codebase

SVN Range TWiki-4.1, Sun, 22 Oct 2006, build 11793
AppliesTo Engine
Component

Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2006-10-25 - MichaelDaum
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback