[Plugin: WordPress Mobile Pack] Deactivate Mobile Switcher Cookie (3 posts)

  1. udegbunamchuks
    Posted 6 years ago #

    I've been using your plug-in for quite some time now and I have to say it's awesome.

    Recently I've been using W3 Total Cache but keep getting this message that the page is not cached due to the cookie set up the switcher handle.

    My question is there a way of disabling the mobile switcher cookie so my pages can be cached freely?


  2. AndreaTrasatti
    Posted 6 years ago #

    No, there is no way at this stage. We are working with frederick and we hope to have something that is mobile-plugin-friendly very soon.

    If you feel brave, you could look into wpmp_swticher.php for the function "setcookie" and comment that line.

    setcookie(WPMP_SWITCHER_COOKIE_VAR, $type, time()+60*60*24*365, '/');

    Should become this:
    // setcookie(WPMP_SWITCHER_COOKIE_VAR, $type, time()+60*60*24*365, '/');

  3. udegbunamchuks
    Posted 6 years ago #

    Thanks for the tip. I'll do just that.
    Wishing you and Frederick a hugely successful collaboration. ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic