Questions tagged [cookie]

Denotes a question related to the Browser cookie.

107 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
79 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
222 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
581 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
91 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
0answers
1k 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
100 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
435 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
106 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
39 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
155 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
119 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
302 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,B) ...
2
votes
0answers
59 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
0answers
2k 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 ...
2
votes
1answer
237 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
16 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
27 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
2answers
81 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 ...
1
vote
0answers
309 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
111 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
178 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
1answer
316 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
0answers
226 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
60 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
93 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
212 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
37 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
79 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
76 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
864 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
286 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
272 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
96 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
78 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
111 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
192 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
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
793 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
817 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
219 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
804 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 ...
1
vote
0answers
124 views

Multiple Cookies in Ajax call

I'm experiencing a wierd problem with Magento EE. In a checkout Ajax call response there are several cookies set, same Cookies multiple times. Anyone experienced the same problem? Any insight what ...
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 ...