A
A
AndyLarcin2015-09-21 12:01:36
Magento
AndyLarcin, 2015-09-21 12:01:36

How to set a cookie?

script type="text/javascript">script type="text/javascript">script type="text/javascript">script type="text/javascript">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
ComeClarity, 2015-09-30
@ComeClarity

It looks like your cookie disappears after 5 seconds:
Try not to pass the period or increase it. Cookies (5 days):

<?php Mage::getModel('core/cookie')->set('popup-shown', 'true', 432000);?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question