Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

How to stop Magento 2 using cookies like recently_viewed_product?

According to the GDPR and recent court decisions, technically unnecessary cookies may only be set after the user has given his active consent. Cookies that are not technically necessary are widely ...
1
vote
1answer
806 views

Losing Magento Session

I've been getting informed that occasionally when our receptionist is taking orders over the phone on our Magento ver. 1.9 website, her basket is randomly emptying itself. I've been unable to ...
9
votes
6answers
12k views

Magento 2: How to use Cookie?

How can we use cookie in magento 2 to store data.. i'm trying to store data in cookie, on vendor/magento/module-checkout/view/frontend/web/js/model/resource-url-manager.js to store selected ...
0
votes
0answers
19 views

Workaround for CookieManager not being use the first time the session cookie PHPSESSID is set

I've upgraded a magento 2 store to the latest version and i'm running into this issue: CookieManager is not used the first time the session cookie PHPSESSID is set #27531: https://github.com/magento/...
0
votes
1answer
93 views

How to use cookie-free domains in magento 2.3.X

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.3.4 and i see here ...
0
votes
0answers
14 views

Magento 2 stores all messages in the cookie and uses Javascript to display these messages, creating problems for codeception-automatic testings

Magento 2 stores all messages in the cookie and uses Javascript to display these messages. That makes problems for codeception automatic testings of login functionality (which cannot use javascript) ...
2
votes
5answers
200 views

Cookiebot throwing console errors in Magento 2.3.4

I have added cookiebot script into head tag, here is the script <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="0000-0000-0000-0000" data-blockingmode="auto" type="...
1
vote
2answers
798 views

Magento 2 Observer not called due to caching?

Intention I am trying to get an affiliate extension to work. The basic concept is that a customer calls the shop-page with a get parameter that is the id of the affiliate partner. The ID will be ...
17
votes
6answers
24k views

SOLVED - Magento 2 - Unable to login to admin (no error message) stuck at login screen

This is not a question but rather an answer to a problem that is pretty old but recurring. I remember struggling on this back in the days when I was setting up Magento 1.9 and it occurred again this ...
1
vote
1answer
30 views

How to make PHPSESSID secure and set sameSite to Strict

We are unable to set PHPSESSID secure and set sameSite value to Strict, does anyone have any idea how we can set this in Magento 2 EE. Thanks
1
vote
1answer
1k views

How to remove cookie data from static content request?

I have created a separate domain to serve static content. Also modified URL values in System->Configuration->General->Web. When I inspect any static content request with firebug in firefox browser, I ...
4
votes
2answers
1k views

Magento 2.3.2 Unable to send the cookie. Size of 'mage-messages' is 4191 bytes

Last two days suddenly my logs are filled with this in Magento 2.3.2: report.ERROR: Unable to send the cookie. Size of 'mage-messages' is 4191 bytes. In Stores>Configuration>General>Web My ...
0
votes
1answer
23 views

Add to cart functionality is not working for any product

my add to cart not working, its showing nothing in cart for 2 stores and for 1 store adding a default product everytime, doesn't matter which product we added, its showing this exception.... We can't ...
1
vote
4answers
1k views

Users can' t login at https store because of double frontend cookie

I have a magento version 1.9.2.4 installation with multiple store views with different urls. One new store view is now running with https in secure and unsecure base url. At this store many customers ...
6
votes
2answers
15k views

How to bind an action after customer login success using Magento?

I'm using Magento 1.4.1.1. After logout success, customer is rooted to "logout.phtml" first and "home page" later. Is there anyway I could make Magento run couple of "php" codes after "login" ...
1
vote
1answer
1k views

Magento 2 messages are not displayed on homepage

I am working on a Magento 2.1.2 project, theme Porto. I installed the MageMonkey extension for Mailchimp integration. I strugle with displaying the messages of successful / unsuccessful subscription ...
0
votes
2answers
1k views

Guest Wishlist in Magento 2

First of all, this is not a duplicate of some other question on Magento SE. I am working to build a custom requirement of guest wishlists. I have searched for some help on the Internet and also dug ...
0
votes
1answer
3k views

Session and cookies are not removing in Magento

I am trying to set the cookie on user login basis and want to empty on logout. Login working perfect but logout didn't work. For that purpose I used this XML code : <customer_logout> &...
0
votes
0answers
25 views

cookie notice not showing

I have Magento 2.3. Cookie Restriction mode is enabled in the admin panel but not showing on the home page. the style after load page [display is none ] but the style on CSS [display is block] this ...
3
votes
2answers
1k views

Is it possible to override the Session Cookie Lifetime found in the sys. config.?

Is it possible to override the Session Cookie Lifetime found in the system configuration? The reason I ask is because it appears that Magento is not honoring the value I set for Cookie Lifetime no ...
0
votes
0answers
18 views

Magento 1 make all cookies secure and HttpOnly

Is there any way to make all the cookies to secure at a time In Magento 1 I tried the following Setting in Magento 1 configuration System->configuration->(General) > Web > session cookie ...
0
votes
0answers
16 views

Add To cart, Login(Frontend and backend) not working after upgrade Magento 2.3.3. Showing Invalid form key Please Refresh your Page in Chrome

I am constantly getting this Error Invalid Form Key in Chrome in various sections of website. Tried following things - max_input_vars = 200000 env.php has value 127.0.0.1 instead of localhost ...
0
votes
0answers
10 views

Magento 1.9.4 google analytics and restriction mode

I try to make the Magento 1.9.4 installation ready for GDPR. I have installed one extension for data. The last thing I need to do is to enable cookie restriction mode. When this is enabled the most ...
1
vote
1answer
3k views

Magento frontend cookie

In a list of cookies I can see "frontend", "adminhtml" and "external_no_cache" cookie name. I need to write a list of all cookies, their purpose and expiration date. Can anyone help me? What are ...
0
votes
1answer
17 views

How to show custom popup when customer click sign out button(want to show this popup for the customer once in a day) in magento 2

I have displayed a custom message in a popup for the logged out customer in Magento 2. For example what I have done so far. Once they click the "sign out" button, I have shown the popup to them. But ...
1
vote
1answer
323 views

set-cookie response header on every request causing varnish miss

I've deployed a couple of Magento installs (2.3) on dedicated servers, with Varnish. Out of the box, everything seems to be ok, but it seems once we developers onto the installations to add themes, ...
1
vote
1answer
1k views

How to Use Session or Cookie in Magento 2.0

I am going to add Age verification block on Home page. for that i want to set session or cookie variable. so that i can check it through out all pages of store weather age verification session or ...
0
votes
0answers
91 views

Magento 2.3.4 Frontend messages don't disappear

I am having this strange issue. In magento 2.3.4 frontend whatever you do and magento needs to display a success or error message, after message is displayed it never go off. You continue to browse ...
0
votes
0answers
12 views

Module to Show Shipping rate at product's page only works after add product for the first time

I’m developing a module to show shipping rate at product’s page, I followed this link: https://magento.stackexchange.com/a/299107/85869. [Short question] When I request estimate for the first time it ...
0
votes
0answers
18 views

Issues with <!— ko if: messages().messages && messages().messages.length > 0 -->

I had problem with file : /vendor/magento/module-theme/view/frontend/templates/messages.phtml. I'm using Magento version 2.2.3 . In current, when I run test with add product bundle from list product ...
0
votes
1answer
24 views

Magento 2 : Get value and name of cookie in phtml

I have a cookie like this: How can i get value and name of this in phtml file? Any help? Thank in advance.
0
votes
1answer
39 views

Magento 2: Push product id to cookie

I have a product list like this: my checkbox value is product id, how to click button request more info and add product id in checkbox to cookie. Any help? Thank in advance.
0
votes
3answers
76 views

How to auto remove items from cart after 1 day - Magento 2.2.4

Guest / Logged-in user: Auto removes items from the cart after 24 hours. Canceling and returning from the payment page auto-remove cart after 24 hours.
0
votes
2answers
185 views

Why I'm seen “Invalid Form Key. Please refresh the page” in the frontend?

Sometimes I'm receiving this message below during the customer login after being changed the cookie domain through the admin panel. Do you know why and when this message shows up? Invalid Form Key....
0
votes
1answer
904 views

Subdomain Cookie

I have a problem with my subdomain in Magento 2.1.6. The user session is not kept between websites. My websites are like this: sub1.market.com sub2.market.com www.market.com I set the cookie ...
0
votes
1answer
135 views

Magento 2.3.4 - Checkout page showing empty

We have a magento 2.3.4 running, when you add products to your cart and open the checkout page the page is just blank. The following error appears within the developer console. A cookie associated ...
1
vote
1answer
818 views

How to set cookie on salesQuoteSaveAfterObserver in magento2

In my custom module events.xml <event name="sales_quote_save_after"> <observer name="cedapi_set_checkout_quote_id" instance="Vender\Module\Observer\SalesQuoteSaveAfter" /> <...
0
votes
1answer
29 views

Magento Redirecting to Dashboard on Save in Back-End, Changes Lost

I have an intermittent issue that seems to happen across all of the Magento 2 sites I manage where if I'm working in the back-end and I save something (could be a content block, category, product, etc)...
0
votes
1answer
67 views

Set cookie when customer logged in Magento 2

I want to set a few cookies named CUSTOM_NAME_FIRST should be set to customer first name and CUSTOM_NAME_LAST should be set to a customer last name when customers logged in and delete upon customer ...
0
votes
0answers
49 views

X-Magento-Vary Cookie getting lost

As the title says, the X-Magento-Vary cookie isn't working that well on my website. Sometimes, whenever a customer logs in, the cookie isn't created and that makes the user lose the session as soon as ...
0
votes
2answers
654 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 ...
2
votes
1answer
9k views

how to use cookie-free domains in magento? [closed]

I analyzed my website on Gtmetrix.com for optimization and the result was this: There are 245 components that are not cookie-free: http://mysite.com/media/css/dabf35e7cd79eb387a68eed1d5f3f925.css ...
0
votes
1answer
45 views

Magento 2.3.3 invalid form key frontend

Last days I have this strange issue in my Magento instance. When you are in front end catalog category page and press store view link, Magento changes to the right store view but you get message ...
0
votes
0answers
103 views

magento 2 how to secure Cookie mage-cache-sessid and enable Secured Flag

Here Am trying to enable HttpOnly and Secured Flag for Cookies mage-cache-sessid or my domain. I did configuration in admin Panel >> store >> configuration >> general >> web but still flags not ...
0
votes
1answer
129 views

Magento 2 cookies not saved correctly and deleted sometimes

I have strange behavior in Magento 2.2.4 and also 2.2.5. If I add a product to the cart it is saved correctly and mini cart shows 1 product. Then I add another product and the first added product is ...
3
votes
3answers
515 views

Dev/Staging/Live Cookie Domain For Non-www Sites

The live URL is http://shop.com. The development/staging URL is http://sub.shop.com. How do I have to set up the cookie domain, so that I can log into both admin areas without any interdependencies? I ...
12
votes
2answers
928 views

Magento2: Minicart is full while Cart is Empty

A lot of our customers are complaining that they add stuff to the cart & then when they proceed to checkout they are redirected to an empty cart. We thought that it might be a result of too short ...
1
vote
2answers
1k views

Magento set cookie popup

This is my popup it show first time click only How to achieve this? <a href="#downloadme" class="fancyBoxLink">Value</a> <div style="display:none"> <div id="downloadme"> ...
1
vote
2answers
83 views

Magento 1.9 Cookie is too large

I am working on a fix to a website in the company that I work, and we got a report from one of the users that the site was taking too long to process things and was told that they got a message saying ...
0
votes
1answer
170 views

Magento2.3: This page isn’t working, 127.0.0.1 redirected you too many times

I'm facing one of the known issue that is 127.0.0.1 redirected you too many times and tried to solve it by following as per the solutions given but those are all not working for me: Magento 2 : Too ...

1
2 3 4 5 6