Title: [Plugin: LogMyTrip] User switch
Last modified: August 20, 2016

---

# [Plugin: LogMyTrip] User switch

 *  Resolved [klimam](https://wordpress.org/support/users/klimam/)
 * (@klimam)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-logmytrip-user-switch/)
 * Hi, how can I please create “cookie to switch user”? 🙂 Isn´t possible to prepare
   small switch to choose the user which posts to draw into the map? Thanks!
 * [http://wordpress.org/extend/plugins/logmytrip/](http://wordpress.org/extend/plugins/logmytrip/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [oddknack](https://wordpress.org/support/users/oddknack/)
 * (@oddknack)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-logmytrip-user-switch/#post-2293744)
 * Hi there, I am also trying to resolve the same issue. Have you had any luck creating
   a cookie, or otherwise switching user for logmytrip?
 * Many thanks
 * oddknack
 * [oddknack@hotmail.com](https://wordpress.org/support/topic/plugin-logmytrip-user-switch/oddknack@hotmail.com?output_format=md)
 *  Plugin Author [ajohnwaters](https://wordpress.org/support/users/ajohnwaters/)
 * (@ajohnwaters)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-logmytrip-user-switch/#post-2293819)
 * Locate the file index.php in the WordPress home directory of your webserver and
   open it in an editor. Add the line below on a new line just after all the comments(
   lines that begin with *) in this file. Save the file and revisit your website
   using your browser. You may have to refresh a couple of times on the site to 
   ensure the cookie is set and that you are not looking at a cached copy of the
   site.
 * To set the userid to 2 for example:
 * `setcookie("tid", "2", time()+60*60*24*100,"/");`
 * This sets the cookie for 100 days every time you visit the site, so it should
   never effectively expire.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: LogMyTrip] User switch’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/logmytrip.svg)
 * [LogMyTrip](https://wordpress.org/plugins/logmytrip/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/logmytrip/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/logmytrip/)
 * [Active Topics](https://wordpress.org/support/plugin/logmytrip/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/logmytrip/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/logmytrip/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [ajohnwaters](https://wordpress.org/support/users/ajohnwaters/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-logmytrip-user-switch/#post-2293819)
 * Status: resolved