Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
1 vote
0 answers
11 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 ...
user avatar
  • 2,602
0 votes
0 answers
22 views

custom context is not working with page caching

I am trying to create a custom context variable in my custom module so created following file etc/frontend/di.xml <type name="Magento\Framework\App\Http\Context"> <plugin name=...
user avatar
  • 2,333
1 vote
0 answers
9 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 ...
user avatar
  • 1,481
0 votes
0 answers
15 views

How to avoid creating performance/optional cookie Magento 2

In magento 2, How we can prevent optional/performance cookie to create. mainly We want to remove: `mage-banners-cache-storage` `section_data_clean` Is there any PHP/JS code so we can remove these ...
user avatar
  • 5,346
0 votes
1 answer
58 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\...
user avatar
  • 3,554
0 votes
0 answers
177 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 ...
user avatar
  • 749
0 votes
0 answers
35 views

Magento 2 Customer log out automatically

Recently we upgraded from Magento 2.2 to 2.4. We have multiple websites and each website has a single store associated with it. After upgrading customer login not working properly. After successful ...
user avatar
0 votes
1 answer
99 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 ...
user avatar
0 votes
0 answers
192 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 ...
user avatar
0 votes
0 answers
35 views

Difference between Online minutes interval and Cookie life time in Magneto 2.3

I am trying to set timeout for customer session in Magento 2.3 I would like to know what is the difference in configuration of Customer Online Minutes Interval and default cookie settings - Cookie ...
user avatar
0 votes
1 answer
55 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" ...
user avatar
1 vote
0 answers
222 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
user avatar
0 votes
0 answers
240 views

Magento 2.4.1 - Shopping cart empty after checkout login

I have a strange issue that is currently under intensive discussion probably in different places and topics, related to different versions of Magento. So, I have a Magento 2.4.1 instance and the ...
user avatar
  • 33
0 votes
0 answers
83 views

How to set Samesite = None in Magento2.4 PHP7.4

After I have checkouted product with a credit card after that session was expired
user avatar
0 votes
0 answers
39 views

Session expired after checkout process and system can not redirect to thank you page

after input OPT for checkout product. it's a redirect to this page and the session expired
user avatar
0 votes
0 answers
25 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
user avatar
0 votes
2 answers
30 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()....
user avatar
0 votes
0 answers
128 views

Magento 2: Which cookies does the cookie restriction mode actually block?

Does anyone know exactly which cookies are blocked when cookie restriction mode is enabled and before the visitor clicks on the "Allow cookies" button? I found a similar discussion on ...
user avatar
  • 21
0 votes
1 answer
68 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 ...
user avatar
  • 5,245
0 votes
0 answers
46 views

Customer Login is not working

I am using Wordpress for the Static pages and Magento 2 for the store .In this combination I am facing one strange issue that when redirect to customer login page of magento 2 from wordpress page than ...
user avatar
2 votes
2 answers
106 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"?> <...
user avatar
  • 904
0 votes
1 answer
163 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 ...
user avatar
0 votes
1 answer
298 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()->...
user avatar
0 votes
1 answer
935 views

PHPSESSID set SameSite=NONE

PHPSESSID cookie is set to default sameSite= lax, how to change it to sameSite=none?
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 ...
user avatar
  • 3
0 votes
1 answer
257 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 ...
user avatar
  • 344
0 votes
1 answer
31 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/...
user avatar
1 vote
0 answers
187 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 ...
user avatar
0 votes
0 answers
161 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. ...
user avatar
  • 231
0 votes
1 answer
191 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 ...
user avatar
  • 2,403
0 votes
1 answer
64 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
user avatar
2 votes
2 answers
746 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-...
user avatar
  • 217
1 vote
0 answers
123 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 ...
user avatar
0 votes
1 answer
69 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: ...
user avatar
0 votes
1 answer
261 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 ...
user avatar
  • 1,187
0 votes
1 answer
422 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(...
user avatar
0 votes
1 answer
131 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 ...
user avatar
0 votes
3 answers
254 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 ...
user avatar
0 votes
1 answer
16 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/...
user avatar
  • 309
1 vote
0 answers
64 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 ...
user avatar
3 votes
0 answers
208 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 ...
user avatar
0 votes
1 answer
194 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
user avatar
  • 3,446
0 votes
0 answers
84 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): "...
user avatar
0 votes
1 answer
551 views

How to delete the cookie while customer logged out in magento 2

I wish to delete cookies while the customer clicked the log out button? Can you please suggest us the best way to do it in magento 2
user avatar
  • 2,408
0 votes
1 answer
121 views

Magento 2 : Use HTTP i mistakenly set no

In admin->stores->configuration->web->Default Cookie Settings->Use HTTP Only i mistakenly set no after that in admin are blank how to solve this.
user avatar
1 vote
0 answers
73 views

The cookie with "X-Magento-Vary" cookieName couldn't be sent

I get The cookie with "X-Magento-Vary" cookieName couldn't be sent. if I try to open a previous order in the customer account. Why is this happening?
user avatar
  • 2,403
1 vote
0 answers
283 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 ...
user avatar
  • 381
3 votes
5 answers
849 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="...
user avatar
  • 135
2 votes
1 answer
3k 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
user avatar
0 votes
1 answer
62 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 ...
user avatar

1
2 3 4 5
7