Warn on incorrect withCookie / discardingCookie usage

If the status is not 3xx and the application is in dev mode, then log a warning to let the developer know that cookie based functions are not going to produce a result.