Skip to main content

Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Cloudflare's full html edge cache with Magento cookies bypass

We are trying to setup magento edge cache with cloudflare including html. The url route of bypassing cache on urls alone e.g. /customer, /admin, etc doesn't really work bcoz e.g. when a customer logs ...
raza19's user avatar
  • 23
1 vote
0 answers
60 views

Magento 2 : Error of cookieMessagesObservable is not defined

I have updated the Magento to 2.4.7 recently and updated it to the staging server. I am getting the error that cookieMessagesObservable is not defined in the console and due to this Minicart is not ...
Aman Mamdani's user avatar
1 vote
1 answer
86 views

Mage-messages cookie is not getting clear in specific store in magento setup

I am facing a strange issue with cookies in the Magento store. The problem is that the "mage-messages" cookie is not being cleared in the US store. In Magento, we have a setting as shown in ...
Mansi Raja's user avatar
0 votes
0 answers
76 views

Add to Cart Not Working After Upgrade to 2.4.6.-p3

after upgrading to Magento version 2.4.6-p3 , Add to cart not working, it just shows adding and then nothing happens. also when I go from category page with options products , it does not shows any ...
Mark Philips's user avatar
0 votes
0 answers
83 views

magento 2 PHPSESSID cookie not show on browser

I am working on one project, which is built in Magneto as the backend (graphql) and in NextJS as the frontend.Both are on different domains actually,issue is that the PHPSESSID cookie not generated on ...
Shubh Prajapati's user avatar
0 votes
0 answers
26 views

Multi-option cookie compliance

When a user visits my Magento 2 site for the first time, I want to display a multi-option cookie banner where I have a list of all non-essential cookies split into groups, allowing them to allow or ...
David Lightman's user avatar
0 votes
1 answer
60 views

How to prevent user sending requests frequently?

I believe it can be done with a PHP controller or JS cookie manipulation. Help me with logic. For example, I want a user to send a request once every 2 minutes. Let's pretend I've implemented some ...
Dramorian's user avatar
0 votes
1 answer
255 views

What are the native cookies Magento has?

What's the list of out-of-the-box cookies on Magento OpenSource and Adobe Commerce Cloud?
Rafael Corrêa Gomes's user avatar
1 vote
1 answer
220 views

Magento 2 - Customer sometimes receiving 503 Error when performing random actions on the cart

I'm experiencing an issue where customers are intermittently receiving a 503 error (maintenance flag) when performing certain actions on the cart in Magento 2. For example, in one scenario, a guest ...
David Young's user avatar
1 vote
0 answers
640 views

How is PHPSESSID cookie being set in Magento 2?

The only place I could find where the cookie actually not being initialized but renewed on every request is renewCookie() function in Magento\Framework\Session\SessionManager. Whenever there is a new ...
Vivek Kumar's user avatar
  • 5,665
0 votes
1 answer
2k views

Invalid form key. Please refresh the page on Front End

When I try to login as user I have the problem of invalid form key on frontend. Once the page is refreshed, the login works. We have 4 sites main.it subdomain.main.it second.it subdomain.second.it ...
KernelPaniC's user avatar
0 votes
0 answers
34 views

BIG ISSUE - "Shopping Cart is empty" after ordering

Our site has been working fine, but a customer phoned today to let us know he couldn't buy. If you try and purchase any item on www.medipost.shop you can add it to the shopping basket, but as soon as ...
Medipost Web support's user avatar
1 vote
2 answers
1k views

Magento 2.4.4 - Call to a member function getCookieSecure() on null

After updating from 2.3.5 to 2.4.4-p2 I am getting an error when the frontend loads. This is how it looks, when I load the frontend: https://i.sstatic.net/L1liN.png The admin works just fine and there ...
user3411's user avatar
  • 134
1 vote
1 answer
612 views

Set cookie not working with varnish

I've created the following observer method that sets a cookie: if ($this->_cookieManager->getCookie(self::COOKIE_NAME)) { $this->_cookieManager->deleteCookie( ...
AboElnouR's user avatar
  • 213
2 votes
1 answer
512 views

Cookie problem after updating to 2.4.4-p2 (page not loading)

After updating from 2.3.5 to 2.4.4-p2 I am getting an error when the frontend loads. This is how it looks, when I load the frontend: https://i.sstatic.net/L1liN.png The admin works just fine and there ...
user4095519's user avatar
2 votes
0 answers
78 views

Magento 2.3.3 Login at checkout not working sometimes

in our Magento when user insert their email at checkout if they already have an account, they are asked to optionally login. Sometimes when the user login using the correct password, the user is ...
Abdallah Al Swaity's user avatar
1 vote
1 answer
33 views

Default cookies and compliance

Do Magento (2.4.x) by it's default settings, with no extensions like GoogleAnalytics installed, require the need of the customer to accept cookies? Newish EU statements tells that the customer do not ...
AP87's user avatar
  • 197
1 vote
0 answers
18 views

Customer login fails with no message for old migrated (from M1) customers

I recently migrated a Magento 1.x store to Magento 2.x. All customers were migrated successfully, etc. But some customers can't login on the frontend unless they clean their cookies. I tried with my ...
Ricardo Martins's user avatar
2 votes
2 answers
432 views

Upgrade to Magento 2.4.4: Customer not logged in automatically after click confirmation link

I just successfully upgrade my Magento v2.4.1 to v2.4.4, there is a problem when a new customer created, after successfully receive the confirmation email and click the confirmation link, The customer ...
jojo's user avatar
  • 39
0 votes
0 answers
35 views

Cookie Restriction Mode Bar showing underneath content

I have enabled the cookie restriction mode and the bar at the bottom of the page is being overlapped by the content on the page. If any one faced this issue before please guide me. Thank You
alishagwcd's user avatar
1 vote
0 answers
449 views

How to deal with Cookie Consent (GDPR) in Magento 2

I am trying to implement a Cookie Consent feature in Magento 2. I would like to show to the customers a pop-up, where I have the cookies split in groups and the customer can choose what he want to ...
Alin Lupoiu's user avatar
  • 2,672
1 vote
0 answers
58 views

What is your go-to solution for EU cookie consent requirements in 2022?

EU's GDPR cookie consent requirements are pretty strict. I have not been able to find a fully compliant extension or service to satisfy all the requirements the legislation sets. All extensions seem ...
Webninja's user avatar
  • 1,593
0 votes
1 answer
1k views

Magento 2 Cookie not able to clear from JS

I am unable to clear the cookie on my Magento site. I am setting the cookie as below which is done successfully use Magento\Framework\Stdlib\Cookie\CookieMetadataFactory; use Magento\Framework\Stdlib\...
Dexter's user avatar
  • 3,613
0 votes
1 answer
1k views

Mage-messages cookie messages not displayed in magento 2.4.2

I am facing an issue that Magento pages like customer registration, login, forgot password, etc not showing any success or error message. I found that cookie with the name mage-messages generated ...
Yogita's user avatar
  • 784
1 vote
1 answer
382 views

How to change Newsletter subscription message on order success page

When a new order is create and the customer has checked the Subscribe to Newsletter box, below is how the checkout/onepage/success page appears. I will like to change the text Thank you for your ...
Inducesmile's user avatar
0 votes
0 answers
792 views

Magento 2 PHPSESSID Cookie Value is the same to different devices / browsers

I am running Magento 2.4.3 with Nginx, PHP-FPM, Varnish and Redis for session and caching storage. When I have already added a product to cart and then I add another product, visiting the site through ...
Nikos Klavdianos's user avatar
0 votes
1 answer
697 views

Magento 2.4 cookie not setting via observer code

Please help me to find the reason that the below added cookie not setting. events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
VIPIN A ROY's user avatar
1 vote
0 answers
642 views

Magento ver. 2.4.2-p1 customer login not working in chrome browser

Dear Friends I am not able to login in magento 2 customer login and not getting any error message also. customer login working fine in firefox browser
SURENDER SINGH's user avatar
0 votes
0 answers
81 views

TypeError: expects parameter 6 to be bool,Magento/framework/Stdlib/Cookie/PhpCookieManager.php:150 setcookie() in magento2.4.2

When go to login on frontend In log error
napawan jindamanee's user avatar
0 votes
2 answers
366 views

The static folder does not contain the editted JS file?

I am trying to edit one of the callbacks of the gdpr-cookie module in the directoy vendor/amasty/gdpr-cookie/view/frontend/web/js/cookies.js: allowCookies: function() { actionAllow()....
Peyman Kheiri's user avatar
0 votes
1 answer
188 views

Cookie Notice Keeps Reappearing - Magento 2.3.7

Since updating my store to 2.3.7 have noticed the cookie notice intermittently showing up randomly before the expiry date has passed. Get this often when I save on backend then revisit a page however ...
harri's user avatar
  • 5,485
2 votes
2 answers
523 views

SetPublicCookie is not working with Full page cache

I have an event triggered on all pages to set a cookie. However, the cookie is created only on uncached page and I don't understand why. Here, my event : <?xml version="1.0"?> <...
Kozame's user avatar
  • 964
0 votes
1 answer
572 views

How can I set cookie when other website redirect to magento website

Magento 2 website is mydoamin.com. (Refer a friend) External Website link redirect to my website. This will provide a reward based on refer a friend anyone buy product in Magento website. After ...
tech clouds's user avatar
1 vote
1 answer
1k views

Magento 2 add session/cookie value to guest customer session

How can I add a value to a guest session? I have tried with the following model session: \Magento\Customer\Model\Session and setter and getter for value like this: $this->getCustomerSession()->...
Oscar Vazquez's user avatar
0 votes
1 answer
2k views

PHPSESSID set SameSite=NONE

PHPSESSID cookie is set to default sameSite= lax, how to change it to sameSite=none?
Naftali Naftalayev's user avatar
0 votes
3 answers
5k views

magento 2.4.2 updated get The store will not work correctly in the case when cookies are disabled

When I upgraded my webiste from M2.3.5 to M2.4.2, I get this notice "The store will not work correctly in the case when cookies are disabled." on top of head frontend for 3 seconds. But I ...
Yan's user avatar
  • 3
0 votes
1 answer
835 views

How to delete cookies on auto logout?

we use have some configurations to some user groups (different prices, only some categories etc) and it's all good if the customer logout and login as a different group account, but when it auto logs ...
Rui Silva's user avatar
  • 374
0 votes
1 answer
52 views

I found this file /vendor/magento/module-customer/Controller/Account/LoginPost.php file is having some code. What is the explanation of below code?

I want to know what actually these two lines of code are doing. $redirectUrl = $this->accountRedirect->getRedirectCookie(); if (!$this->getScopeConfig()->getValue('customer/...
Vibhore Jain's user avatar
1 vote
0 answers
359 views

Magento 2 Varnish caching add to cart session from another user

When adding an item to cart, it will also show a second item, which I have previously added to cart from a different device. If I bypass varnish cache, cart seems to work ok. Guess I am missing a ...
Nikos Klavdianos's user avatar
0 votes
0 answers
626 views

Magento 2.4 Customer Login - Refresh page

I'm running into an issue on a Magento 2.4 website with 2 websites ( the one is on a seperate subdomain ). Some customers cant login using their credentials, the page just reloads without any errors. ...
sarakinos's user avatar
  • 251
0 votes
1 answer
747 views

Magento 2 - Can't log in to backend after changing cookie domain

My magento project is running on a subdomain redesign.company.de. I have changed the cookie domain from empty to .redesign.company.de, because I often had issues where my site was loading forever and ...
Black's user avatar
  • 3,380
0 votes
1 answer
806 views

How to set cookie SameSite=None instead of SameSite=LAX

In Magento 2, how do I set the cookie SameSite=None so that the server will not default to SameSite=LAX. For more info refer to the image below. Thanks in advance
4 Leave Cover's user avatar
2 votes
2 answers
1k views

cookie lax append issue

on magento 2.4.2 upgrade Uncaught TypeError: Cannot create property 'cart' on string '{"messages":1613612384,"company":1613612384,"customer":1613612384,"compare-...
sivakumar's user avatar
  • 287
1 vote
0 answers
198 views

Magento 2 submit contact form not showing success/error messages

I'm using Magento 2.4.2 on a website with multiple stores where I have : example.com/fr example.com/es example.com/us/en ... My issue is when someone submit on the contact form, no success or error ...
baillyju's user avatar
0 votes
1 answer
210 views

Cart lost for logged in customer. Retrieved only after adding item

We run a B2B webshop in Magento 2.3.5 and customers have to log in to be able to add items to the cart (Amasty Hide Price-module). However we are experiencing problems with disappearing carts: ...
Bo Bergmans's user avatar
0 votes
1 answer
803 views

What happens to mage-cache-storage (local storage) when the browser window is closed?

Magento uses mage-cache-storage (local storage) for local storage of visitor-specific content that enables ecommerce functions. The Expiration policy is session. Suppose customer is using the website ...
Sarvagya's user avatar
  • 1,217
0 votes
1 answer
876 views

SET THE RIGHT DOMAIN NAME IN MAGENTO 2 COOKIES

I set cookies (in Magento 2.3.1 EE) with this code below: <script type="text/javascript"> require([ 'jquery', 'jquery/jquery.cookie' ], function ($) { $(document).ready(...
Alain Landry Noutchomwo's user avatar
0 votes
1 answer
271 views

Cookie value not updating on homepage Magento 2

In Magento2.3, I have cookie value not updating on homepage while its updating on other pages. Even on incognito browser close and reopen cookie value still exist. Please suggest me way to make cookie ...
vijay gupta's user avatar
0 votes
3 answers
523 views

"Invalid Form Key, please refresh the page? " - addtocart

I am testing website deployed based on Magenta Template Framework, the problem that occurred is that the cart kept being empty even the add to cart link has been ran. And furthermore, i kept getting ...
pseudox's user avatar
0 votes
1 answer
47 views

Magento2 after transfer the site to new server:try clearing your cookies. err_too_many_redirect

When I try to visit the admin URL. I get a browser error that indicates too many redirects I have tried the following to resolve it: php bin/magento cache:clean php bin/magento cache:flush php bin/...
gill's user avatar
  • 339

1
2 3 4 5
7