encukou/test-2 — Issue #34: Provide a mechanism for saving data server AND client-side
Author: encukou
Created: 2011-11-03 19:34:24+00:00
State: open
Labels: feature, urgent, users

**Reported by [Eevee](http://bugs.veekun.com/users/1) on 2010/09/12 02:34:34 +0000 · Migrated from [Redmine issue 358](http://bugs.veekun.com/issues/358)**

---

That is: do what `spline-frontpage` already does in Python land, and give me a javascript function that will use a cookie for guests or the user stash for logged-in users.

The tricky bit is making it work whether or not `spline-users` is loaded; probably needs a stub in core that just sets a cookie.

The other potentially tricky bit is making sure the Right Thing happens when someone logs in—i.e., has both a cookie and something user-side. Either have some mechanism for one way to “win” (e.g., frontpage takes the later of two dates), or just decide that one always wins. Or prefer the cookie, save it automatically, and then delete it. Or.. whatever.

Redmine metadata:
Updated on: 2011/04/21 02:55:44 +0000
Start date: 2010/09/12

---

**Comment by [Eevee](http://bugs.veekun.com/users/1) from 2010/10/07 02:00:19 +0000**

Target version: 2010 Q3 ⇨ —

---

**Comment by [Eevee](http://bugs.veekun.com/users/1) from 2010/10/08 08:02:17 +0000**

Assignee ⇨ —

---

**Comment by [Anonymous](http://bugs.veekun.com/users/5) from 2011/02/14 07:54:55 +0000**

(elided; spam)

---

**Comment by [Eevee](http://bugs.veekun.com/users/1) from 2011/04/21 02:55:16 +0000**

Project: spline-users ⇨ spline

---

**Comment by [Eevee](http://bugs.veekun.com/users/1) from 2011/04/21 02:55:44 +0000**

category_id: None ⇨ 36