Title: [Plugin: WordPress Mobile Pack] Problem in wpmp_switcher cookie
Last modified: August 19, 2016

---

# [Plugin: WordPress Mobile Pack] Problem in wpmp_switcher cookie

 *  [thom4](https://wordpress.org/support/users/oncletom/)
 * (@oncletom)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mobile-pack-problem-in-wpmp_switcher-cookie/)
 * Hello,
 * I was trying to force the wpmp_switcher cookie through htaccess (I’ll explain
   later) and then, I realized the cookie name was not properly guessed.
 * I use this on my blog, at [http://case.oncle-tom.net](http://case.oncle-tom.net).
   
   However, your plugin creates the cookie for ‘case.oncle-tom.net’. It should be
   on ‘.case.oncle-tom.net’.
 * Indeed, when I force the creation of the cookie (I redirect m.case.oncle-tom.
   net to the regular website), with a htaccess RewriteRule ([CO=wpmp_switcher:mobile:
   case.oncle-tom.net]), the cookie is created with ‘.case.oncle-tom.net’.
    So the
   browser lives with 2 wpmp_switcher cookies: yours, and mine.
 * If I do that, it’s because I want both redirections: by domain + user agent, 
   with a single living domain.
    I want to avoid redirections for mobiles (except
   for those trying to force the mobile website, with the ‘m’ subdomain) and ease
   content sharing through this.
 * How could we achieve that?
    I wanted to bypass WP, because it’s too heavy to 
   load all WP depencies just for a redirect.
 * Thanks 🙂

The topic ‘[Plugin: WordPress Mobile Pack] Problem in wpmp_switcher cookie’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mobile-pack_7b7875.svg)
 * [WordPress Mobile Pack - Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps](https://wordpress.org/plugins/wordpress-mobile-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mobile-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mobile-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mobile-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mobile-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mobile-pack/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thom4](https://wordpress.org/support/users/oncletom/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-mobile-pack-problem-in-wpmp_switcher-cookie/)
 * Status: not resolved