Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [cookie]

Denotes a question related to the Browser cookie.

0
votes
1answer
18 views

“Invalid Form Key. Please refresh the page” on Admin login page. I set the wrong cookie domain in the Admin panel. How to change that in the database?

Magento 1.9.4 I am setting up a new Magento 1.9.4 store but I am setting that up for an existing live store which is currently running Magento 1.9.1. I made the mistake of entering the other domain ...
0
votes
0answers
5 views

setcookie() issues on running with HTTPS on WordPress [migrated]

I have set 2 custom cookies to be saved when user clicks a button that runs the script to save the cookies. The issue is that I need these to be saved through HTTPS because I am using them on a store ...
1
vote
0answers
24 views

How to trigger reload window , after customer cookie lifetime expiration?

I want to achieve functionality, where the screen will automatically reload when customer cookie lifetime is expired. Currently, by default Magento expire cookie and session from the server side, but ...
0
votes
1answer
61 views

Magento2: How to delete cookies programmatically?

I want to delete cookies programmatically before as login customer.
1
vote
0answers
132 views

How to use cookie-free domains in magento 2

I have recently create gtmetrix report for my site, in that report I found Use cookie-free domains to 0 means nothing. My question is that how to use cookie free domain in magento 2.2.6
0
votes
0answers
17 views

Magento 2 : conflit between admin and customer sessions

I developed a multi-store Magento website : mydomain.com/admin/ (use to connect to admin) one.mydomain.com two.mydomain.com When I'm logged in as an admin user I can't log in as a frontend customer ...
0
votes
0answers
8 views

Is the cookie “store” needed in Magento Admin? And what does it do?

For a very special case I need to know if the "store" cookie is used in Magento Admin, and why. I noticed it is set in Magento\Store\Model\Plugin\StoreCookie::beforeDispatch(), for both frontend and ...
0
votes
0answers
12 views

Magento 1.9 Menu Currency on first click does not change value

use Magento 1.9 I have enabled the Multi Currency menu, but when I change from one value to another at the first Click, reload the page but not the Currency Ex: GBP -> € GBP recharge It happens ...
0
votes
0answers
9 views

Does magento end a session when user password is reset?

Does magento end a session when user password is reset? If person A is logged in to magento and person B is logged in with the same account (at the same time), and then person A changes the password,...
2
votes
1answer
18 views

Question about disabled cookie consent (Magento 1.9.3.7)

Normally speaking, the Cookie Restriction Mode is enabled in order to notify visitors that cookies are required for full-featured operations. The message links to the privacy policy for more ...
1
vote
0answers
30 views

magento 2, cookie notice does not appear in home page

Cookie Restriction mode is enabled in admin panel. I see <div class="message global cookie" id="notice-cookie-block"> is exist in other page but missing in home page. What could cause this? Any ...
0
votes
2answers
26 views

Loging on frontend failed with no errors

For a few hours I could not login on frontend. (on local domain https://www.magento2.loc, magento 2.2.5, developer mode). If I enter wrong username or password, yes, I receive error message. With ...
1
vote
0answers
20 views

Magento 2: After custom cookie is created all pages default to home page

I'm trying to add a custom cookie that will save the current cart item total so an external CMS can access and display it. However, when the cookie is created successfully, any subsequent page loads ...
0
votes
0answers
115 views

Magento 2 - Security : HTTP Only cookie

Our Security team raised security issue cookie setting and asked to set HTTP only and Secure cookie. Looks like Magento functionality overrides HTTP only parameter. To fix this issue we have set ...
2
votes
2answers
48 views

Installation hangs at 73% - admin cookie set with expired date

The installation proceeds normally until the console log gets to: Module 'Magento_Weee': Installing data... At this point (73%) the user experience just hangs, while the browser repeatedly requests ...
1
vote
0answers
119 views

Strange behavior with the redirects in Store views, Cms pages, Cookies

Config : Front : I have Two store views 1:simple, 2:pro. Admin : 1Website->1StoreGroup->2Storeviews: simple and pro Cms Pages : I created different Cms pages, let's taking for example : 2 (A,...
0
votes
0answers
53 views

Delete custom cookie in logout observer not working

I have an observer which is triggered properly on customer logout. The observer's execute method looks like this: public function execute(\Magento\Framework\Event\Observer $observer) { $this-&...
1
vote
1answer
25 views

Cookie restriction mode not working

I'm using magento 1.9 and I'm trying to set up the cookie restriction mode to display the cookie notice. I have everything enabled and appears set up correctly but the cookie notice doesn't display, ...
0
votes
1answer
37 views

Magento 2 cookies not saved correctly and deleted sometimes

I have strange behaviour in Magento 2.2.4 and also 2.2.5. If I add a product to cart it is saved correctly and minicart shows 1 product. Then I add another product and first added product is lost in ...
0
votes
1answer
360 views

Magento 2 Cookie for specific domain without extra dot

I am trying to set the cookie for the specific domain(as I have multiple websites and I don't want to share them) so for this, I changed the configuration as OOTB Magento provides this feature (Stores ...
0
votes
0answers
51 views

Magento 2 store switcher - store cookie not changing because of full page cache

I have a Magento 2 site with a basic store switcher that lets the user switch between 2 stores using the URL method (e.g __store=default). When I have FPC enabled, the cookie that sets the current ...
1
vote
0answers
27 views

Cache System and Cookie reading Magento 1.9

In the header.phtml I have a DIV which gets visible only when a cookie is NOT set in the browser. <?php if (Mage::getModel('core/cookie')->get('cookiex') == '') { ?> <div></div&...
0
votes
0answers
83 views

What is the recommanded cookie lifetime when persistent cart enabled?

Currently we are facing an issue with our cart. We have enabled persistent shopping cart and our default cookie lifetime is 1 hour. Many times the user facing empty cart while they trying to login or ...
0
votes
0answers
28 views

Understanding the Magento 2 'store' cookie

A few questions here: What event specifically triggers the Magento 2 store cookie to be created? Where can I find this in the codebase? How can I ensure that the most up-to-date version of this ...
0
votes
0answers
59 views

Best Practice for Url Key when using CMS Home Page and multiple store views in Magento 2?

Wondering how to approach this situation: We have two stores and corresponding store views, store1 and store2, which can be accessed via site.com/store1 and site.com/store2 Each store is linked to a ...
0
votes
1answer
98 views

M2 > Recently viewed cookie lifetime

In magento 2.2.5 I added a recently viewed widget block that way: <block class="Magento\Catalog\Block\Widget\RecentlyViewed" name="category.recently_viewed" template="Magento_Catalog::product/...
0
votes
0answers
14 views

same browser login issue admin

i have created sub domain for magento 1.9.3 but when i login in main domain admin and try to login in sub domain it redirect to index.php/admin/index/index but not login. I show there is cookie and ...
1
vote
0answers
97 views

Missing HTTP flag and Secure flag on form_key and mage-messages

As per my security checking and testing in Magento 2.1, I see that secure cookie or HTTP only flag not set on form_key and mage-messages.For the security reason, we need the cookie to be secure. Can ...
0
votes
0answers
21 views

Cookie Restriction Mode (click on page to grant consent)

the consent to the installation of cookies occurs by pressing the "Allow" button of the banner. I would like it to happen also by clicking on a menu item or any other link on the page displayed. ...
1
vote
1answer
55 views

Magento2 : delete core cookies programmtically

What is the similar code in Magneto2 to delete core cookies? $cookies = Mage::getSingleton('core/cookie')->get(); foreach($cookies as $cookieName) { Mage::getSingleton('core/cookie')->...
0
votes
0answers
74 views

Adding Cookiebot script to Magento 2

Friends, I am trying to add the script from Cookiebot because they have a good cookie system which meet all GDPR ( General Data Protection Regulation ) requirements. Here you can find the help page ...
0
votes
1answer
227 views

Cart stays empty if cookies are not deleted

For some reason people can't put things in their cart, the issue is fixed once you clear your cookies. Problem is: we're getting reports from a lot of customers that they can't add things to their ...
1
vote
1answer
596 views

Magento 2 : How to set secure cookie OR HTTP ONLY FLAG SET

As per my security checking and testing in Magento 2, I see that secure cookie or HTTP only flag not set on the Magento 2. For the security reason, we need the cookie to be secure. Can someone please ...
0
votes
0answers
114 views

Programmatically log user in with dynamic user session cookie life time

How to set a dynamic session cookie lifetime while logging the user programmatically. I know a common session cookie lifetime can be set via core config web/cookie/cookie_lifetime. But I need to ...
0
votes
0answers
110 views

Form Key cookie is set twice - Magento 2.2.4

I am having two different form_key cookies being set on my browser for my Magento 2.2.4, one on domain 'www.example.com' and one on '.www.example.com'. My cookie path is set to / and my cookie domain ...
1
vote
0answers
513 views

Magento 1.9 : Cookie restriction mode not working

I activated the cookie restriction mode in the backend & cleared all caches. The CMS static block called "cookie_restriction_notice" is activated too. But there is no overlay showing up. I also ...
0
votes
0answers
45 views

Default Cookies popup not closing when clicking button

I have a problem, when clicking the X on the Mage2's default cookie popup, it isn't closing. Is there any reason why this might be? Please see my site here: http://dassiedev.dassieartisan.com/
0
votes
2answers
1k views

Edit the default Magento2 cookie message

I would like to change the text and button value of the Mage2's default cookie policy popup. See how it looks now: https://imgur.com/a/qvqAGXb I would like it to read some different text and have a ...
2
votes
1answer
52 views

Magento 1 : Customers can't login, cookie issue

Some customers report that they can't log in on the frontend, even with a correct password. I've seen it happen sometimes, the page just reloads with no error messages. Deleting the cookies solves the ...
2
votes
1answer
52 views

After changing cookie path, customers where unable to login in account and checkout page

I've just changed cookie path settings in magento admin. After this, on storefront, I'm unable to login as customer or on checkout page (on checkout page it redirects to empty cart). However if I open ...
2
votes
0answers
619 views

Magento 1.9.3.8 Actual purpose of Cookie Restriction mode?

Hi guys I have enabled the cookie restriction mode in my magento installation, but cannot gather the purpose of this mode. it displays a banner for users to accept, but actually doesn't look to be ...
1
vote
1answer
254 views

Magento 2 : Cookie Security: HTTPOnly not Set for customer id

While Customer login in magento 2 system . We are setting cookie against Customer and cookie has been set but when are checking cookie in browser location where HTTPONLY is showing False that reason ...
1
vote
0answers
110 views

Full page cache issue with cookie in M2

I have set cookie value using onclick event. At page load i want to check cookie value so have create module as explained in this How to add Cookie Magento 2? url. everything is working properly but ...
1
vote
1answer
56 views

Translate Magento Admin config settings to config.php settings

I want to modify a setting, which I know how to find and change in the Magento Admin, - but I want to modify it in the config.php file. Which way can i find out the configuration path / syntax within ...
1
vote
0answers
185 views

Magento 2 cookie is not set on homepage

I'm trying to set a new cookie the same way the store cookie is set. I use the following plugin: <type name="Magento\Framework\App\FrontController"> <plugin name="homepage_plugin" ...
0
votes
0answers
264 views

Magento 1.9 Cookie Settings Not Working

I am attempting to serve static content from a cookieless domain in order to improve my website's speed grade. I have the images, JS & CSS being served successfully from separate subdomains (...
0
votes
1answer
560 views

Cookie displaying popup again and again Magento-2 [duplicate]

As no one helped me before. That's why I am asking again for help in creating a cookie that help to display popup only one time. What should I change in this script so that it displays popup only one ...
0
votes
1answer
357 views

Magento 2 Cookies break login on subdomains

I have a magento 2 install running on domains like this: site.com business.site.com If you go directly to the subdomain you can login without issues but if you visit the primary domain at all ...
0
votes
0answers
21 views

Magento 2 creating cookies and how to set them

I have read many articles on creating cookie but my problem is still not fixed. I want to create a cookie for my newsletter pop-up. my newsletter pop-ups are so annoying, it appears on all screen even ...
0
votes
1answer
393 views

Setting cookie on login

So I've installed a new chat for my website but need to do one last thing, and that is to set a cookie on login, and delete it on log out. Code I'll be using for login: setcookie('cc_data',$userid, ...