Neil Turner's Blog

Blogging about technology and randomness since 2002

Cure for amnesia

I think I may have fixed the bug users who wanted their details remembered in the comments form. The default code that comes with MT would only save your details for the current folder, which, if you are using MT’s default method of putting all files in one folde, is no problem. But I’m not now – a new folder is created for each day of posts. As such, the cookie is only any use for that day’s posts – post a comment on another day and the cookie is not retrieved.
Anyway, I’d noticed that Les didn’t have this problem, so I checked out his code. Indeed, he had made some subtle changes which allowed the cookie to be set for the whole domain, so I’ve copied the code in the hope that it’ll fix the problem here.

Comments are closed.