We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Since Last Visit Plugin Issue

Development and Programming

Briggs's avatar
Briggs
111 posts
about 18 years ago
Briggs's avatar Briggs

I have recently started using this plugin.

It’s working, but having some issues.

When a user first visits the site, the cookie is set. Therefore, my icon does not show up beside each entry that is new. (this is expected)

So, if we wait awhile, a new entry is posted, the person visits, and there is the icon beside the entry (working as intended).

I have set the expiration of the cookie for 744 hours (about 1 month I think). Ih ave it set this high because I don’t want visitors to come to the site and have to reset the cookie, because each time it expires, it wont show new entries on that particular visit in whcih they have a new cookie downloaded (So the more often the cookie resets, the more often they have to look at the articles and not be told which ones are new).

The problem with having a huge expiration date on the cookie, is that every entry is considered new, for 1 months time! Sort of defeats the purpose.

I don’t know if there is a way around this. I guess “since last visit” is sort of deceiving. It’s more like “Since the last time a cookie was set on your machine”.

I guess my end result is for the astrix icon to not appear on their second, third, etc, visit, without having the cookie expire. Does anyone have any idea how to use ee tags or php to accomplish this?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.