encrypt cookies php note 34184 added to function.mcrypt-encrypt
When you pass the values of this function through cookies or forms, i reccommend you change the 256 to 128. You really don't loose much security and it makes it more reliable since sometimes when you encrypt in 256 you get backslashes, I also reccommend the ECB mode for this.