MIke 503, yeah that was my script in C that uses cookies man, You can even set the cookie expire time yourself, it is thru with beta testing and is ready to go.
http://www.chickenhost.com/scripts/turbo.htm
I see that a lot of guys with gallery databases posting in this thread are using my php version of this script. If you guys like the php version, you will love this new C version. No, it is not cheap, but it will reduce your server load like you would not believe. It requires no mysql at all.