TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Any WordPress Developers here that can help me?

3 pointsby markcrazyhorseover 10 years ago
Hey there.<p>I&#x27;m trying to find out what cookies wordpress sets automatically for all users?<p>I&#x27;m creating a page count function (as I dont want to use yet another plugin) and at the moment it is counting everytime I press f5. I just want to be able to do it only once.<p>Thanks for your time. I would have usually put this on stackoverflow but the community isnt to fond of broadish questions nor ones without code &#x2F; specific problems.

4 comments

giaourover 10 years ago
Any reason you want to do this in WP and not using a javascript solution like Google Analytics?<p>Backend page view tracking is not compatible with most forms of response caching.
peacemakerover 10 years ago
I write WordPress plugins for my business and if I want to manage cookies I use something like <a href="https://wordpress.org/plugins/wp-session-manager/" rel="nofollow">https:&#x2F;&#x2F;wordpress.org&#x2F;plugins&#x2F;wp-session-manager&#x2F;</a>. This will give you full control.
salukiover 10 years ago
You can set&#x2F;read your own cookies when developing on wordpress.<p>I usually us the jQuery cookie plugin for javascript.<p>You can set&#x2F;read cookies using php as well.
hsxover 10 years ago
I&#x27;m not too familiar with WordPress but couldn&#x27;t you just store the page count in the database and update it periodically?