[pmwiki-users] restricting cookies to a field

Patrick R. Michaud pmichaud at pobox.com
Thu Jan 12 15:21:17 CST 2006


On Thu, Jan 12, 2006 at 09:16:06PM +0000, Hans wrote:
> How can I restrict a cookie to a field?
> The problem is that setting a cookie in one field on the same site
> (domain) is effecting the behaviour in another field. Most
> undesirable. This happens for instance with skin changes
> (skinchange.php loaded for the fields).
> One field changes the skin. Then gouing to a different page in another
> skin changes that field's skin as well.
> How can the cookie be set to work field specific? Or can it not be
> done?

If you're talking about PmWiki's built-in cookies, perhaps use
$CookiePrefix in each field's local/config.php to give each 
cookie a different name.

If you're talking about cookies being stored by recipes, they
probably ought to be making use of $CookiePrefix.  :-)

Pm




More information about the pmwiki-users mailing list