Questions tagged [cookie]

Denotes a question related to the Browser cookie.

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

Module to Show Shipping rate at product's page only works after add product for the first time

I’m developing a module to show shipping rate at product’s page, I followed this link: https://magento.stackexchange.com/a/299107/85869. [Short question] When I request estimate for the first time it ...
0
votes
0answers
7 views

Issues with <!— ko if: messages().messages && messages().messages.length > 0 -->

I had problem with file : /vendor/magento/module-theme/view/frontend/templates/messages.phtml. I'm using Magento version 2.2.3 . In current, when I run test with add product bundle from list product ...
0
votes
0answers
13 views

Magento 2.3.4 Frontend messages don't disappear

I am having this strange issue. In magento 2.3.4 frontend whatever you do and magento needs to display a success or error message, after message is displayed it never go off. You continue to browse ...
0
votes
1answer
21 views

Magento 2 : Get value and name of cookie in phtml

I have a cookie like this: How can i get value and name of this in phtml file? Any help? Thank in advance.
0
votes
1answer
26 views

Magento 2: Push product id to cookie

I have a product list like this: my checkbox value is product id, how to click button request more info and add product id in checkbox to cookie. Any help? Thank in advance.
0
votes
3answers
43 views

How to auto remove items from cart after 1 day - Magento 2.2.4

Guest / Logged-in user: Auto removes items from the cart after 24 hours. Canceling and returning from the payment page auto-remove cart after 24 hours.
0
votes
1answer
36 views

Magento 2.3.4 - Checkout page showing empty

We have a magento 2.3.4 running, when you add products to your cart and open the checkout page the page is just blank. The following error appears within the developer console. A cookie associated ...
0
votes
1answer
14 views

Magento Redirecting to Dashboard on Save in Back-End, Changes Lost

I have an intermittent issue that seems to happen across all of the Magento 2 sites I manage where if I'm working in the back-end and I save something (could be a content block, category, product, etc)...
0
votes
1answer
56 views

Set cookie when customer logged in Magento 2

I want to set a few cookies named CUSTOM_NAME_FIRST should be set to customer first name and CUSTOM_NAME_LAST should be set to a customer last name when customers logged in and delete upon customer ...
0
votes
0answers
30 views

X-Magento-Vary Cookie getting lost

As the title says, the X-Magento-Vary cookie isn't working that well on my website. Sometimes, whenever a customer logs in, the cookie isn't created and that makes the user lose the session as soon as ...
0
votes
1answer
26 views

How to use cookie-free domains in magento 2.3.X

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.3.4 and i see ...
0
votes
0answers
49 views

magento 2 how to secure Cookie mage-cache-sessid and enable Secured Flag

Here Am trying to enable HttpOnly and Secured Flag for Cookies mage-cache-sessid or my domain. I did configuration in admin Panel >> store >> configuration >> general >> web but still flags not ...
0
votes
1answer
33 views

Magento 2.3.3 invalid form key frontend

Last days I have this strange issue in my Magento instance. When you are in front end catalog category page and press store view link, Magento changes to the right store view but you get message ...
0
votes
1answer
116 views

Magento2.3: This page isn’t working, 127.0.0.1 redirected you too many times

I'm facing one of the known issue that is 127.0.0.1 redirected you too many times and tried to solve it by following as per the solutions given but those are all not working for me: Magento 2 : Too ...
0
votes
1answer
133 views

How to change value to X-Magento-Vary cookie based on URL parameter?

I would like to change the value of the 'X-Magento-Vary' cookie based on URL query string, just like when a customer logs in or store is beeing changed. I created a plugin to set a value to the http ...
0
votes
0answers
14 views

Cookie Management

Looking at adding functionality to the Cookie consent, instead of just accepting them I would like to add a new button which takes you to the a new page where you can select which cookies you would ...
0
votes
0answers
11 views

Cookie notice (Cookie Restriction Mode) Production Mode

In Magento 2.3.2 in producion mode don't showing coockie notice. In developer mode everything is ok.
2
votes
0answers
71 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 ...
0
votes
1answer
80 views

Why do I need the SID in my URL?

Since I installed my store I see the SID code in my URLs but I don't know why it's there, I found an option in my admin panel to disable it. Could you explain to me why do I need it?
0
votes
2answers
80 views

Why I'm seen “Invalid Form Key. Please refresh the page” in the frontend?

Sometimes I'm receiving this message below during the customer login after being changed the cookie domain through the admin panel. Do you know why and when this message shows up? Invalid Form Key....
0
votes
0answers
13 views

Magento 2.3.1 - Cookie lifetime changed to 29 days - Causing random and few timeout for customers - Session Memcache Mode

We have changed the cookie lifetime in Magento 2.3.1 to 29 days and also change PHP configs (session.gc_maxlifetime) to the exact same period. We are using in Magento session saved in memcache. ...
0
votes
0answers
13 views

Cookie showing clear text user name and password

Magento 2 Browser Cookie showing clear text user name and password. how can i remove or hide. please suggest me.
0
votes
1answer
26 views

Account get log out after editing account information

I have a problem with Magento 1.9.3. When I log in as a customer and I make changes to my account information, such as name, last name, etc, and I click save I get logged out. Sometimes everything ...
3
votes
0answers
66 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\...
0
votes
1answer
67 views

Cookie notice coming in the top of the html page : Magento2

i have installed https://meetanshi.com/magento-2-cookie-notice.html cookie extension in my website . Now i am facing a serious issue . In my page source this cookies content is coming before my ...
1
vote
2answers
61 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 ...
3
votes
1answer
503 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 ...
0
votes
1answer
28 views

I have Problems when uploaded the image on my product in backend magento 2.3.2

today when try to upload the image on my product, magento show me this error firts time magento show me this error becauses, before i edited all my products, and now magento show me this.
0
votes
1answer
47 views

Maintain cart for a week in Magento 2.3.1

Ref - same issue link Everything enabled but still facing cart expiry in hour issue for guest checkout, any idea? My Magento version is 2.3.1
0
votes
0answers
32 views

Some old customers can't log in with some browsers to customer account of magento 1.9.4

We have strange problem in our magento 1.9.4 web-site. Some customers cant log in to their customer account but most can. Seems that in some cases clearing browser cache helped but some customers said ...
2
votes
0answers
33 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 ?
0
votes
0answers
18 views

Magento 2 getCookie() returns wrong values in observer

I have created an observer that saves cookie data in the sales_order table on the sales_order_save_before event. I have tested that saving to the database in the custom fields works fine but I'm ...
1
vote
2answers
47 views

Magento 2 - How to check customer is logged in or not using cookie?

I want to achieve below functionality. When user visit my website I want to setup cookie for example 30 second, After 30 second if user is not register then ask him/her for registration. It is just ...
1
vote
0answers
203 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 ...
2
votes
1answer
129 views

Implications of increasing MAX_NUM_COOKIES

Magento 2 allows 50 cookies per domain. This limit is enforced by Magento\Framework\Stdlib\Cookie\PhpCookieManager::MAX_NUM_COOKIES. What are the implications of increasing that value? I've read how ...
6
votes
4answers
857 views

PHPSESSID: Session Cookie Does Not Contain the “Secure” Attribute

In m1 we could just override isSecure from Mage_Core_Model_Cookie model, method: public function isSecure() { return $this->_getRequest()->isSecure(); } How can we accomplish this in m2?
5
votes
2answers
75 views

Can't login to staging servers without deleting cookies first. Magento 1.9

We have multiple clones of our main shop at www.mainsite.com for testing and developing. e.g. test.mainsite.com, fbk.test.mainsite.com and isk.test.mainsite.com, There is a big issues with the ...
1
vote
0answers
86 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 ...
0
votes
0answers
28 views

Not able to set cookie in observer

I am trying to set a cookie on the observer "catalog_controller_category_init_after" but it does not create the cookie but when I do exit after set cookie it will create cookie after I remove exit ...
0
votes
0answers
72 views

Magento 2: Not getting set cookie value in RegisterTrackingObserver

I am trying to catch referrer from url : https://www.mycompany.com/?referrer_id=5 and save it to cookie so that if user sign up, I can save this cookie value (5 in this case) as his referrer. My ...
1
vote
1answer
116 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 ...
2
votes
0answers
127 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 ...
0
votes
1answer
206 views

Set cookie in Observer Not working when full page Cache is enabled

I have to set category id in cookie when customer go to Category page and update cookie with category id when visit again using seperate module. I have created Observer and set cookie there but not ...
0
votes
0answers
100 views

when i select custom shiping method my other shipping methods not working in magento 2

i have two shipping methods 1)Custom shipping 2)Free shipping when i select custom shipping it works fine when i choose free shipping showing error on checkout undefined index : ...
0
votes
0answers
199 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, ...
0
votes
1answer
72 views

Magento 1.9 Save recently viewed products in cookie

I need to save the recently viewed products in a cookie. The way that if there's no recently viewed products in session it reads it from the cookie. But I can't find where to find this exactly. I'm ...
0
votes
1answer
82 views

How to set a cookie on add to cart and remove it when cart is empty?

As in title - I'd like to set a cookie when any product is added to the cart and remove it if cart is empty. I found a somewhat similar answer for setting cookies on login, which is perfect, cause I'...
1
vote
2answers
844 views

messageManager addSuccessMessage/addErrorMessage set cookies?

Whenever I addSuccessMessage/addErrorMessage it sets the cookie? But I am not able to get that code, where that magic happens. In messages.js it gets that message by using code $.cookieStorage.get('...
1
vote
0answers
168 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
42 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
2 3 4 5 6