Help - Search - Members - Calendar
Full Version: "remember Me" With Blog At Root Level
Movable Type Community Forum > Using Movable Type > Commenting System
gdhnz
I have created a blog at the top level of my hosting and everything works fine except the "Remember Me" option for commenting.

I've tracked it down to the cookie information in mt.js that gets generated when I publish the blog.

Lines 2-5 of a published mt.js
CODE
var mtCookieName = "mt_blog2_user";
var mtCookieDomain = ".";
var mtCookiePath = "";
var mtCookieTimeout = 14400;


To get it working, I have to edit it so that it looks like
CODE
var mtCookieName = "mt_blog2_user";
var mtCookieDomain = ".www.mygrotto.org";
var mtCookiePath = "/";
var mtCookieTimeout = 14400;


The problem with this is that each time I republish the site, the mt.js gets reset.

I have another MT4 install where the blog is not at the root level but is in a subfolder and "Remember Me" works as it should.

Ideas?
OtherNiceMan
Where is your mt directory? Are those files in the root as well?

You can also disable the republishing of mt.js
gdhnz
QUOTE (OtherNiceMan @ Dec 2 2008, 11:49 AM) *
Where is your mt directory? Are those files in the root as well?


What do you mean mt directory? If you mean mt-static then it is a folder at the root level. The cgi files are in /cgi-bin/mt/

QUOTE (OtherNiceMan @ Dec 2 2008, 11:49 AM) *
You can also disable the republishing of mt.js


This would be a last resort but in case there is no other way round it, where is this set?
gdhnz
Hmmm...it's definitely a bug in MT4. If I clone the blog to a subfolder, the cookie domain and path are set correctly in mt.js.

gdhnz
$#@%%#@$!@#@#$

5 seconds after logging a bug, I discovered that Site URL didn't have a trailing slash. I entered one and re-published and cookiedomain and cookiepath are now set correctly.

Trap for new players.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.