In my site I have a requirement for which I need to parse the values from the url (the values are random and rotating) and store it in the session variables of the site. In turn will store the session values in database when the user in that session submits a form. I have enabled caching for the site.

Now the issue is, after flushing out the Drupal cache, landing in the site with a set of session values and navigate to all the pages of site. Here the session values too seems to have cached. Again when we land on the site without any values in url or with a new set of value, all the pages of the site retains the first set of session value as the response is served from cache.

Is there any way to prevent the session variables from getting cached. Is this a specific drawback of caching in drupal 6. Any help would be greatly appreciated.