If you press Ctrl + Alt + F3
(or anything other than F7 ) you should get a command line login, then you can edit your files.
Alternatively you should be able to ssh
to the command line.
You should generally avoid editing ANYTHING in /etc/xdg/lxsession/
and make a local copy in .config/lxsession/