It looks like you are passing the CID session form the detail page to the insert page as a form value, this would only be needed if the insert page is on a different server.
The job of a session variable is to exist through out any page on your site once it is set.
you do not need to pass it from one page to another using a form.