I recommend getting the IE plugin IEWatch if you're going to work with sockets and cookies. It allows you to view your http requests on a site and you can almost directly paste the results into mIRC's script (just sticking it after the sockwrite commands). If you have Firefox, I believe there's a way to see them in there as well.

Invision Support
#Invision on irc.irchighway.net