Quick Nav:  Online Store   |   Login | Register

Cached Cookies for All Users?

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Will Strohl
<50 Posts
Posts:48


04/07/2008 3:49 PM  

I have a module where one or more of the fields are automatically filled in using the users' cookies.  However, we have just noticed that the cookies are not necessarily being looked at.  For instance, I searched for "Value 1".  With my module, when the form is submitted, "Value 1" will then be added to a cookie.  Then, let's say that the PageBlaster cache cached this page.  The next visitor appears to have "Value 1" entered into their form field instead of whatever they last put in.  The cookies are handled server-side.

Do you know of a way to get around this?  This may force us to stop using this module. 

Even though I have been experiencing growing pains with it in figuring out what needs to be configured in order to get things to work how they originally did, I am thoroughly enjoying the performance benefits and replacement benefits it has to offer.

John Mitchell
Posts:2779


04/07/2008 4:13 PM  
Cookies are not part of the cache key by default, but in version 3.x you can add them.

You can do it in the global config using the
ext-cachekey-parameters="[PB:Request.Cookies('Value1')][PB:Request.Cookies('Value2')]"

You can also do it on a specific page which would be better by putting a PageBlaster module on the page and editing the Config.

Go to Cache Settings + Extended Cache Parameters and put those same tokens in.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Cached Cookies for All Users?



ActiveForums 3.7
Powered by: Snapsis Software