Support » Plugins and Hacks » LogMyTrip » [Resolved] [Plugin: LogMyTrip] User switch

[Resolved] [Plugin: LogMyTrip] User switch

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


    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



    Plugin Author ajohnwaters


    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 ‘[Resolved] [Plugin: LogMyTrip] User switch’ is closed to new replies.
Skip to toolbar