WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Mobile Pack
Cookie path and domain compatibility (1 post)

  1. John Blackbourn
    Member
    Posted 3 years ago #

    I'm using WPMP on a site where we're defining the COOKIEPATH and COOKIE_DOMAIN constants manuallysubdomains. Unfortunately WPMP doesn't use these constants when setting the switcher cookie and therefore the cookie doesn't work correctly.

    I've modified the wpmp_switcher_set_cookie() function in the WPMP Mobile Switcher plugin so it works correctly. The setcookie() line in the function now reads:


    setcookie(WPMP_SWITCHER_COOKIE_VAR, $type, time()+60*60*24*365, COOKIEPATH, COOKIE_DOMAIN);

    It'd be great if this could be implemented in the plugin.

    John

    http://wordpress.org/extend/plugins/wordpress-mobile-pack/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic