Set userid and sessionid straight away