Import cookie class.
Merge branch '4.0'