I need some assitance on this one...

I am atttempting to use the users cookies to launch an online quize...

I work within an Intranet, and I need to have a page recognize a specific user...Basically , like using an If statement..(i.e If user cookie = 'S526960' then open this HTML page)

I know that is a crude example, but hopefully it gets my point accross.

So is this possible, and if so could someone point me in the right direction to accomplish it?

Thank you.