setting Session Id and mimeType