Added cookie encryption