alexander another problem you have is your are sending more than just a hash as a parameter for SetCookie(%hash) which is also screwing you up...that is the odd number of elements warning you are getting..