added sessions in cookie for examples