default userpic

MT5 - Cookie Problems

Vote 0 Votes

A couple of weeks ago, I updated my blog (http://blog.dave.org.uk/) to MT5. A few days later I took the step of moving all of my web site (http://dave.org.uk/) to MT5. Previously the main web site was a few hacked together pages of HTML that were generated with some Perl code and the Template Toolkit and the blog was the only section powered by MT.

As part of this change, I moved the /mt directory from within the blogs subdomain so that it now lives within the top level domain.

But something, somewhere has gone wrong. It appears that cookies aren't being set correctly. There are currently two symptoms of this:

1/ No-one can comment on the blog. When you click the "sign in" link on the blog, you just get the spinner, which never stops spinning.

2/ Within the dashboard of the site, I'm prompted for my username and password on every HTTP request.

For dave.org.uk I can see an mt_user cookie and for blog.dave.org.uk I can see an mt_blog_user_cookie. But for some reason MT doesn't register that the cookies are being set.

Does anyone have any advice or recommendations?

Cheers,

Dave...

Reported on Movable Type 5

6 Replies

| Add a Reply
  • Dave,
    I just gave it a try, and it seems to be working (at least it didn't spin forever, although it didn't really want me to sign up so I could comment). Have you changed something since you originally posted?

  • Ah, no. I haven't changed anything - just misremembering the symptoms when I wrote my original report.

    It doesn't spin forever, it completes the request but doesn't log you in. That's why I thought it was a cookie problem.

    Sorry for the confusion.

    Dave...

  • Given my experience on your site, I don't think it's a cookie problem, but a configuration problem - a script that is forwarding incorrectly, something that doesn't have the right permissions, something that isn't executing... something like that. Your issue seems to be with sessions, and them potentially not being logged. This would explain why your site keeps asking you to log in, and why nobody can register (since it claimed I took too long to confirm my own registration on your site (which I did within seconds of getting the email to confirm it)).

    For future reference, it's normally a cookie problem when your "remember me" options don't work, but this sure seems like sessions just aren't being logged to your database correctly.

  • For what it's worth, I'm not seeing any errors in the error log.

    If it's caused by a configuration problem, that would make sense. I had to tweak a few settings in the mt-config.cgi in order to get it working. I needed to make sure that some of the settings were absolute URLs.

    CGIPath http://dave.org.uk/mt/
    StaticWebPath http://dave.org.uk/mt/mt-static/

    If anyone has any suggestions for things that I can check, I'd be really happy to see them.

    Dave...

  • I have got to the bottom of this with a little out-of-band help from an MT expert.

    My mt_session table was corrupt. A quick 'check table mt_session' followed by 'repair table mt_session' and all seems to be working fine again.

    Hope this information is useful to someone.

    Dave...

  • Glad I was at least in the right ballpark for you.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012