flash msg persisting

9 views
Skip to first unread message

Michael Ossareh

unread,
Mar 3, 2011, 4:51:25 AM3/3/11
to clojure...@googlegroups.com
Hey,

So I'm using sandbar.stateful-session/flash-put to put a msg into the session. I then redirect the user to the target page. As that page is rendered I sandbar.stateful-session/flash-get the msg and put it into a hidden node on my page which some javascript then makes use of.

However on the next request the content is still dropped into my page - if I print the request map out I see :flash {:msg "my msg"}.

I've not had the chance to try a complete minimal example, however I was wondering if anyone had come across this before and if so what the issue is?

Cheers,

mike

Michael Ossareh

unread,
Mar 3, 2011, 4:44:53 PM3/3/11
to clojure...@googlegroups.com
I've investigated this and it is as a result of ring-session-riak - there seems to be a race condition that I'm tripping over. I've opened a github ticket and will look into imminently.

 
Cheers,

mike

Reply all
Reply to author
Forward
0 new messages