It is difficult to keep sid query parameter between two cgis without cookies (or mod_rewrite hacks).

Apache::StickyQuery is a filter that rewrites all links in HTML file using "sticky query". It would be useful in keeping state (ie. like Session IDs) without using Cookies. See HTML::StickyQuery for details.

This module is Filter aware, meaning that it can work within Apache::Filter framework without modification.