I've developed an anonymous flagging feature on my local server which is working great.
I've pushed the site to Pantheon and the anonymous flagging is no longer working, I've disabled all caching & aggregation. Session API is definitely enabled.
The flag javascript toggle displays a throbber, changes to 'unflag link' and appears to have flagged the entity, but on page refresh, the flag is reset.
This is only happening for anonymous users, the flags work fine when logged in.
Any advice you could provide would be much appreciated!
Comments
Comment #1
dsquaredb commentedAdding this comment since the issues may be related.
Seems to be some issues with anonymous user flags and some Pantheon configuration. My local dev site works fine, also, but have problems on Pantheon. On my site on Pantheon, anonymous users can flag and unflag content, but they get the No Results message on the views of the flagged content. By accident I discovered that if an anonymous user flags content, then attempts to log in to the site unsuccessfully, then the page will refresh and the flagged content will appear in the views.
Comment #2
PI_Ron commentedHi DSquaredB,
Apologies for not following this up earlier, I was meaning to post the solution I found. The cause for anonymous flagging issues is a cookie name used by the Session API module. Please see comment on below issue for renaming info:
https://drupal.org/comment/8284387#comment-8284387