Add tracking cookie each time the request URL contains a given query string parameter

Topics: General
Jul 30, 2013 at 5:13 PM
We have a Composite C1 site and we need to be able to store a tracking cookie on each page request that contains a given query string parameter inside its request URL, e. g. http://ourC1Site/aPage?cookie_id=xxx-xxx-xxxxx.

This would be quite simple in an ASP .Net site by making all pages inherit from a custom base page and add the needed code to the base page's Init method, but I am not sure what would be the recommended way of doing it in C1. Any help would be much appreciated.
Coordinator
Aug 30, 2013 at 3:48 PM
Hi Florin

The easiest way should be to add an http module to the web.config.

http://support.microsoft.com/kb/307996
Sep 16, 2013 at 5:32 PM
napernik, thanks for your answer. Asp .Net HTTP modules are indeed a very good solution and actually the one I ended up using.