Fix sessionid var in view templates