What webserver are you using (version too, please!)?
EDIT: A couple of possibilities of you're running Apache.
If you're on Apache2, you could try something like [man]apache_getenv/man and such, to store the client's SSL serial in a flat file OR a database (such as MySQL) for verification purposes. For a list of Apache-related variables to use, see this page.
If you're on Apache 1.x series, you can probalby use mod_rewrite to add the client's serial onto the URL, i.e. rewrite the URL to:
myfile.php?serial=%{SSL_CLIENT_M_SERIAL}
and so on. I'm not an expert at the rewrite module, so who knows.
EDIT2: Forgot to mention - lucasrd's solution, while not as secure, is also a feasible solution.