Questions tagged [cookie]

Denotes a question related to the Browser cookie.

97 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
1answer
830 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 ...
6
votes
0answers
1k views

Multi store with different domains, cookie store is causing problem

Please note that it's not another "how to setup multistore". I've read other questions and it seems that my problem is not described. Following are not answering my question: set default page to ...
6
votes
0answers
75 views

Why is admin logging me out?

I go to the admin login in Chrome after clearing all cookies and everything. First thing I check Chrome cookies. I see only one cookie. Name: adminhtml Domain: .mysite.com Path: / Created: ...
4
votes
0answers
195 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 ...
4
votes
0answers
575 views

Cookie issue with Internet Explorer

I have an issue with my Magento installation (Version 1.9.2.2). It works in every browser (tested with Chrome, Safari, Firefox, and Opera) but not in Internet Explorer. In IE, Magento doesn't set any ...
3
votes
0answers
39 views

Magento 2 : Get cookie just next after set it

let's say we have executes below magento-2 code at one single request, namespace namespace\CookieDemo\Model; /** * Class Cookie */ class Cookie { /** * @var \Magento\Framework\Stdlib\...
3
votes
1answer
191 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 ...
3
votes
0answers
914 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
3
votes
0answers
96 views

Magento page does not load because cookie conflict

I have exact this problem: Maximum execution time exceeded. Clearing cookies only solution Sometimes and with some users the page does not load, and shows random errors with "Fatal error: ...
3
votes
0answers
427 views

Why this complex logic for cookie domain in session start?

I was debugging why an empty value in the cookie domain still resulted in a domain value being set in the session cookie and came across this weird code in Mage_Core_Model_Session_Abstract_Varien: ...
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 ...
2
votes
0answers
27 views

Magento 2 Varnish & Cookies

I have noticed when browsing our website with cache and cookies clear we get Varnish Cache HITS on every page (with cache warm). Once you add an item to cart then browse back to the same pages we get ...
2
votes
0answers
16 views

EU cookie compliance

I'd like to have a (if possible) free magento 2 extension to deal with EU Cookie Compliance (RGPD). This module must allow the user to customize it's cookies. Which one would you recommand ?
2
votes
0answers
87 views

Magento 2 Increase guest session time and keep the items in cart for 20 days

I want t increase guest user session time in magento. If guest user add to cart and just go for lunch or any other activity putting his/her website open in browser, when user come after 5-6 hours ...
2
votes
1answer
56 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 ...
2
votes
0answers
261 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,...
2
votes
0answers
45 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&...
2
votes
1answer
1k 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 ...
2
votes
1answer
885 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 ...
2
votes
1answer
218 views

Pop up will display after removing cookies

We have custom button "Save design" in product view page , once guest user clicked on that, it will display pop up as below, but after sometime, onclick button will not display pop up box, but once ...
1
vote
0answers
123 views

Magento 2 : How to configure cookie free domain?

In GTMetrix, I checked "Use cookie-free domains" result is 0 and also checked that there are Magento 2 default provide this configuration. How to setup that and upgrade maximum "Use cookie-free ...
1
vote
0answers
72 views

How to save cookies in magento 2 without disabling full page caching

I have created a plugin to for the layered naviagtion filters. Fore this I need to save the filter chosen in the cookies but the cookies are now saving. When I disable the full page caching, then ...
1
vote
1answer
73 views

Magento 2 cookie not set when full cache enable

I have created one helper file that get, set and delete cookie. This helper file I called in observer to set cookie. The helper file called but cookie not set when full cache enabled. <?php ...
1
vote
0answers
108 views

Issue with mage-messages cookie in iphone safari

For my device testing (iPhone Safari), multiple notifications pop on, from the code message.js initialize: function () { this._super(); this.cookieMessages = _.unique($....
1
vote
0answers
30 views

Magento 2, overriding cookie module, domain name is not set correctly

As a requirement, the magento 2 EE website does not ask user to allow for setting cookie, it is set by default and it just notifies user by message. So I override the vendor/magento/module-cookie/view/...
1
vote
0answers
31 views

CloudFront like reverse proxy instead Varnish

I know that CloudFront is CDN, not reverse proxy, but if I understand correctly now is possible to use CloudFront to serve everything behind it. I found few links, and seems like it is possible. For ...
1
vote
0answers
32 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 ...
1
vote
0answers
111 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 ...
1
vote
0answers
36 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 ...
1
vote
1answer
55 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, ...
1
vote
1answer
69 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')->...
1
vote
0answers
746 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 ...
1
vote
0answers
231 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
0answers
250 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" ...
1
vote
1answer
93 views

Login to admin after second attempt only

Can't figure out a strange issue. When I access to site.com/admin and enter access credentials, Magento redirects me to the login page again. If I refresh the page or enter login credentials again, ...
1
vote
0answers
21 views

Customers not able to login intermittently

I am using Magento 1.13.1.0, and getting this issue appearing differently on different browsers. On Chrome, customers are not able to logged in at all. On Opera, Customers are able to logged in but ...
1
vote
0answers
1k views

M2: Issue with mage-messages cookie

After updating Magento Framework to 2.1.7, none of the flash messages (success, error, notice ..) are show on frontend, which is making very difficult for user to understand what has happened after ...
1
vote
0answers
66 views

Website stuck into Infinite Loop

I got a strange problem in my multiwebsite store. When a random user do login at frontend, the page keeps continuously and user doesn't get my account page and in after few minutes it shows memory ...
1
vote
0answers
91 views

JavaScript not able to Manipulate value and expiry date of cookie

I have to set a cookie in magento, say current_city in OPC. I have set the same via Magento in built cookie function. Mage::getModel('core/cookie')->set('current_city',$city); I wanted to modify ...
1
vote
0answers
172 views

Request Header Or Cookie Too Large

I am getting Request Header Or Cookie Too Large error on firefox on login and checkout pages but on chrome its working fine. I know that it can be fixed by removing cookies for that particular website ...
1
vote
0answers
50 views

How can I get Magento Each Session values by using Magento frontend cookie value through Web Service?

We are developing separate home page from Magento and accessing information from Magento through Web Services and will integrate this external home page with existing Magento website. But on this ...
1
vote
0answers
187 views

Magento 2 after customer login redirect to my orders failed to set login_redirect session

Steps to produce : Login to customer click on my order link This redirects to login page again(Session not able to handle login) This happens only on FIREFOX browser. I need proper solution ...
1
vote
1answer
965 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
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 ...
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 ...
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 ...
1
vote
2answers
631 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 ...
1
vote
1answer
737 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" /> <...
1
vote
0answers
218 views

Admin login: invalid form key after SUPEE 7405

My customer is running Magento version 1.6.2.0. After applying the security patches including SUPEE-7405, it's no longer possible to login to the backend because we get the error "invalid form key. ...
1
vote
1answer
740 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 ...