[
https://issues.apache.org/jira/browse/JSPWIKI-653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045192#comment-18045192
]
Alex O'Ree commented on JSPWIKI-653:
------------------------------------
status on this one. i have the changes on a branch. i was able to get the
preferences stored on the server and restored at login, however there's an
issue.
Here's how i'm testing.
New incognito browser. login in, set user pref to dark mode, save preferences.
close all incognito browsers
New incognito browser.
Login page(get)
login page (post) -> sets a session variable
stuff happens during the login process, followed by redirect
redirect page loads > checks for session variable, then adds the existing prefs
as a response cookie. page loads but i think the preference loading happens
after this point. So the first page that's loaded is in light mode, but
refreshing the page, flips to dark mode.
So it's pretty close, but i'm just not sure what needs to happen next to ensure
that the first page load after the login correctly has the dark mode flag set.
> Save user preferences on the server side
> ----------------------------------------
>
> Key: JSPWIKI-653
> URL: https://issues.apache.org/jira/browse/JSPWIKI-653
> Project: JSPWiki
> Issue Type: Improvement
> Components: Core & storage
> Affects Versions: 2.8.3
> Reporter: Jürgen Weber
> Assignee: Alex O'Ree
> Priority: Major
>
> Currently user preferences are stored in a cookie.
> Unfortunately, our users cannot change the browser cookie settings, which
> default to the cookies being deleted on closing the browser and JSPWiki
> forgetting the user preferences.
> JSPWiki should introduce some kind of user preferences storage interface, an
> implementation should be selected in jspwiki.properties. Implementations
> should be the current cookie based behaviour and storage in a property file
> (location specified again in jspwiki.properties).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)