Sticky restricted content message
-
Hello dear Support,
i’m building some criminal-movie distribution website at the moment. The website should have a paywall, and so i decided to integrate your plugin. Yesterday I activated premium features, so these features work, but the premium plugin is still in trial period.
Our website shows the following behaviour at moment: When a user has finished their purchase via paypal and is redirected to our site, the purchased product is shown including a link to the protected page. Following the link you would expect that the restricted content messages is not shown any more, but it is still given by webserver as a response.
At woocommerce settings, the option to allow guest users is deativated, and according to the settings a new user is created at purchase process automatically (a wordpress_logged_in_… cookie for this new user is created during purchase and, monitoring the process at another browser, a new user pops up at admin dashboard). Furthermore woocommerce shows a new completed order for the fresh user after the purchase.
A few hours ago, when I analyzed the problem a bit, i tried to refresh the protected page after the purchase again and again, using f5, shift f5, etc. because i thought of the browser cache… At first I did this again and again without an effect. And at the 8th, 9th or 10th time, it suddenly switched from the restricted content message to the full content (which is to be shown behind the paywall). This was reproducable many times. (Of course, I deleted the newly created user, the related order and cookies each time before trying anew.) Using webdeveloper tools at firefox browser i found out that http requests were not processed by the browser cache at all, but fetched from the server all the time, and that the switch to the full behind-paywall-content was just a matter of time. Really strange…
This was some hours ago. At the moment the restricted content message is even more sticky. And the strange behaviour which was reproducable, is not reproducable any more. I. e. even if I refresh quite some times, the switching to the full content (which should be shown after purchase) does not happen any more. Even one or two minutes after the purchase it does not. (Clean preconditions before testing and the automatic creation of user and order during the purchase are still the same.)
What can I do to have the restricted content message disappeared after purchase, immediately and in a reliable way?
Best regards,
Stefan
The topic ‘Sticky restricted content message’ is closed to new replies.