//Cookie configuration
var expAppBanner = new Date();
var exbMin = 3;
expAppBanner.setTime(expAppBanner.getTime() + (exbMin * 60 * 1000));
$abCookie = $.cookie('app-banner');
if ($abCookie == null) {
$.cookie('app-banner', 'showed', { path: '/', expires: expAppBanner });
//do here
}
else {
// cookie at work
}