Added "real" support for cookies