Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
1 vote
1 answer
92 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
0 votes
0 answers
19 views

Hide the Cookie Banner on certain pages

I have a product widget page which I put in an iframe of an external site. I need to deactivate the cookie message for this, suggestions?
Franz's user avatar
  • 1
0 votes
0 answers
261 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
  • 4,941
0 votes
1 answer
770 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
26 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
0 votes
0 answers
59 views

Magento sets wrong cookie domain

I have two store views. The default store view and a store view for english language. If I go to the english store view, then im logged out and need to login again... so I want to set the same cookie ...
Black's user avatar
  • 3,100
0 votes
0 answers
63 views

Cookies and x-magento-vary cookies are deleted automatically from browser in magento2

I am reloading the page 3-4 times in website and i have found that x-magento-vary and custom cookie set by us are automatically deleted from browser.
Manthan Modi's user avatar
1 vote
2 answers
830 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.stack.imgur.com/L1liN.png The admin works just fine and ...
user3411's user avatar
0 votes
0 answers
13 views

Persistant Shopping Cart Retains Group Pricing after Session Expire

I am noticing that in some cases where sessions expire group prices and other customer data seems to remain even though user is not logged in. I have persistant shopping cart enabled and set to clear ...
harri's user avatar
  • 5,395
0 votes
1 answer
370 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
  • 203
1 vote
1 answer
392 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.stack.imgur.com/L1liN.png The admin works just fine and ...
user4095519's user avatar
1 vote
0 answers
59 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
0 votes
1 answer
24 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
  • 125
1 vote
0 answers
17 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
417 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
  • 129
0 votes
0 answers
33 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
208 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,662
1 vote
0 answers
33 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,581
0 votes
1 answer
915 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,593
0 votes
1 answer
856 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
281 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
605 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
459 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
598 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
73 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
237 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
128 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,395
2 votes
2 answers
394 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
  • 954
0 votes
1 answer
477 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
851 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
4k 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
651 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
49 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
322 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
446 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
  • 231
0 votes
1 answer
605 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,100
0 votes
1 answer
578 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
  • 247
1 vote
0 answers
175 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
196 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
567 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
761 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
225 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
449 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
27 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
  • 329
1 vote
0 answers
94 views

Magento 1 configuration in .htaccess is not working

In magento i have added the below configuration in .htaccess file php_value session.cookie_secure 1 php_value session.cookie_httponly 1 <IfModule mod_php5.c> php_value session.cookie_httponly ...
Hamendra Sunthwal's user avatar
3 votes
0 answers
326 views

How to add "httponly" attribute set on existing cookie ? (Magento 1)

In Magento 1 I can see many of the cookie are without Secure flag and HttpOnly set on website. Is their any way to set Secure flag and HttpOnly set on all server Cookie ? I need to make all server ...
Hamendra Sunthwal's user avatar
0 votes
1 answer
339 views

Magento2 How to get PHPSESSID value of Guest User?

Magento2 How can I get PHPSESSID value for Guest User? I need to use it to identify frontend user in PWA, using the rest API
Arjun's user avatar
  • 3,526
0 votes
0 answers
180 views

Magento2: Varnish Test result fail

I'm trying to submit an extension for Magento 2.4 but can't pass the "Varnish Test" stage because of the cache that can't be set up on some pages (simple-product and category): "...
sonicso's user avatar

1
2 3 4 5
7