session stuff

login and logput shouldn’t throw errors like this. also, don’t try to
destroy sessions, that are not set.