$(function() {
var expDate = new Date();
var minutes = 3;
expDate.setTime(expDate.getTime() + (minutes * 60 * 1000));
$go = $.cookie('sto-cookie');
if ($go == null) {
$.cookie('sto-cookie', 'test', { path: '/', expires: expDate });
window.location = "/example"
}
else {
// do nothing
}
});