Hi both, no - I still haven't resolved this, but using the client-id is "good enough" for now. I will revisit this when I have some more time, but those links from Sven looked interesting.
+1 for Peter's helpfulness. On 29 March 2015 at 08:04, Sven Richter <[email protected]> wrote: > Hi Colin, > > I had the same need for this almost a year ago. And it turned into this > issue: https://github.com/ptaoussanis/sente/issues/65 > Peter was very helpful explaining things and so I went with the client side > generated uuid which I stored in the localstorage, IIRC. > > However, I just looked at it and a new issue came up with a similar need: > https://github.com/ptaoussanis/sente/issues/82 > And it seems Peter did some unreleased work on it. > > Just have a look there and see if it helps you somehow. > > Best Regards, > Sven > > Am Donnerstag, 26. März 2015 16:22:45 UTC+1 schrieb Colin Yates: >> I have read the documentation but I think I am having a bad day as I just >> can't get it to click. >> >> Essentially I would like each new 'client' to be uniquely identified where: >> - a new client is created for every 'client-less' request (e.g. a new tab) >> - each subsequent request is then associated with that client >> - server restarts can happily drop all existing clients and they can become >> new clients >> - authentication is handled elsewhere >> >> I can't use the ring's session-id as it is shared by every tab. I notice a >> 'client-id' which appears to be unique across tabs but the FAQ implies that >> 'client' is the wrong granularity. >> >> I am sure I am being a numpty, but what do I need to do. Is a user-id-fn of >> :client-id sufficient? > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
