A user can set any one cookie on their browser. One that will be set if the submits the their email for subscription and another if they don't want to see the pop up again.
@if(Cookie::get("english")!=1 and Cookie::get("stop_popup")!=1)
//my html code here
@endif
The user should see the subscription popup if they don't have both cookie above. They should not see the subscription box if they have english or stop_popup cookie set in their device.
@if(Cookie::get("english")!=1)
@endif
Only single condition works not both. Why is that? Have I done anything wrong in the above code?
Aucun commentaire:
Enregistrer un commentaire