-
Notifications
You must be signed in to change notification settings - Fork 30
Controlling when cookie is set #4
Description
I've create a site that's essentially like a book. The home page is the "cover" and each post is a new "chapter". On the home page I have a link that takes the visitor to either the first chapter or the latest chapter, depending on whether or not they're a new visitor. Currently I'm deciding which link to show by using your .repeat-visitor and .first-visit classes, but they're not working quite like I need them to.
For instance, if a visitor comes to the home page for the first time they'll see the link to the first chapter. Then if they hit refresh they'll see a link to the latest chapter, even though they haven't yet actually gone to the first chapter/post.
I'd love a more granular level of control. I'd like to be able to say:
- If they're read the first post then show a link to the latest post.
- If they haven't, then show a link to the first post.
Is it possible to control when the user is flagged as having read a particular page?