This is a solution for those having relogin problems with Lastpass/Xmarks and Firefox 57 if you do not want to allow all cookies for whatever reason. You need to whitelist cookie
loglogin.lastpass.com
This seem to Firefox 57+ specific. Firefox ESR and Chrome do not need this cookies to function.