Added cookie functionality to sandbox