Slighty changed cookie check strategy to avoid setting an extra cookie. ...

...Now the check is performed on regular session cookie