Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › eStore – Pay-per-view, APR Duration question › Reply To: eStore – Pay-per-view, APR Duration question
The duration of the download link controls how long the link is valid for. The APR expiry is only valid for however long the user keeps the browser session active.
Suppose the link duration is 2 days. The user can use the link as many times as they want, within a 2 day period.
Suppose the APR expiry is 8 hours. The timer starts from the instant the download manager redirects to the PPV page. As long as the user does not leave that page, the APR protected content is visible. If the user refreshes the page, within the 8 hours, the content is still visible. After 8 hours, the APR cookie expires and the content will no longer be visible if the page is refreshed. And if the user at any time closes their browser session, the APR cookie is deleted; and they must use the download link again.
With that said, the download link duration “…is the boss.”
In other words, the APR expiry is like a “page meter.” Suppose you are selling access to adult content. The buyer gets a 2 day pass, good for 30 minutes per session; to watch whatever live “entertainment” you are selling. The download link duration is 2 days, and the APR expiry is 30 minutes. To enforce the APR expiry, you might want to use some JS timer that will force a page refresh every so often, causing the APR expiry to be retested.