We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
11
votes
1answer
829 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 ...
0
votes
0answers
9 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.
0
votes
1answer
769 views

Subdomain Cookie

I have a problem with my subdomain in Magento 2.1.6. The user session is not kept between websites. My websites are like this: sub1.market.com sub2.market.com www.market.com I set the cookie ...
2
votes
0answers
24 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 ...
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" /> <...
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 ...
1
vote
1answer
737 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 ...
8
votes
2answers
3k views

Unable to send the cookie. Maximum number of cookies would be exceeded Magento 2.1.5

Every time I open var/Repots in magento 2 website, I found hundreds and thousands of error files all having the same message: a:4:{i:0;s:71:"Unable to send the cookie. Maximum number of cookies ...
0
votes
2answers
45 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....
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"> ...
0
votes
1answer
24 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?
2
votes
1answer
883 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 ...
3
votes
1answer
186 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 ...
2
votes
1answer
3k views

Persistent Shopping Cart and Guest / Anonymous Users

Our site does not use accounts or logins, so basically all of our users go through guest checkout. I was under the impression that the "Persistent Shopping Cart" does exactly that - saves the ...
1
vote
2answers
629 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
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 ...
0
votes
0answers
11 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
12 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.
6
votes
4answers
376 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?
0
votes
1answer
25 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
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\...
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 ...
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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
3k views

Session and cookies are not removing in Magento

I am trying to set the cookie on user login basis and want to empty on logout. Login working perfect but logout didn't work. For that purpose I used this XML code : <customer_logout> &...
1
vote
1answer
70 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 ...
0
votes
1answer
776 views

Magento 2 How to get Cookie value in Block

I didn't get the Cookie Value in any block or phtml file. This is the code: Extra.php (Block File) <?php namespace Websource\Quotation\Block; class Extra extends BaseBlock { const COOKIE_NAME ...
14
votes
3answers
18k views

SOLVED - Magento 2 - Unable to login to admin (no error message) stuck at login screen

This is not a question but rather an answer to a problem that is pretty old but recurring. I remember struggling on this back in the days when I was setting up Magento 1.9 and it occurred again this ...
8
votes
4answers
9k views

Magento 2: How to use Cookie?

How can we use cookie in magento 2 to store data.. i'm trying to store data in cookie, on vendor/magento/module-checkout/view/frontend/web/js/model/resource-url-manager.js to store selected ...
0
votes
1answer
25 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
2answers
689 views

Magento2: How to delete cookies programmatically?

I want to delete cookies programmatically before as login customer.
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
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 ...
0
votes
1answer
989 views

Magento Cookie Issue When Logging Into Customer Account

I have a server setup locally with Vagrant which is running nginx + php5-fpm + mysql + varnish. I've disabled varnish for now just to rule that out. I've been having issues when trying to login into ...
1
vote
1answer
379 views

Magento Architecture - using helper to handle all data & variables

Is it considered good/bad architecture to set up a helper and let this handle all the constants, variables and data? I am currently writing a fairly simple extension to do with member/non-member ...
1
vote
2answers
105 views

503 error only when customer logs in (Magento 1.9.4.0)

Website works fine until a customer logs in and then they are presented with a 503 error when they browse to any category or product. The actual account page does appear fine once they are logged in. ...
2
votes
1answer
2k views

Magento 2 Cookie for specific domain without extra dot

I am trying to set the cookie for the specific domain(as I have multiple websites and I don't want to share them) so for this, I changed the configuration as OOTB Magento provides this feature (Stores ...
0
votes
1answer
24 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
42 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 ...
1
vote
0answers
15 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
17 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
40 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 ...
0
votes
2answers
3k views

Edit the default Magento2 cookie message

I would like to change the text and button value of the Mage2's default cookie policy popup. See how it looks now: https://imgur.com/a/qvqAGXb I would like it to read some different text and have a ...
0
votes
2answers
485 views

Cart stays empty if cookies are not deleted

For some reason people can't put things in their cart, the issue is fixed once you clear your cookies. Problem is: we're getting reports from a lot of customers that they can't add things to their ...
1
vote
2answers
1k views

Customer Login Session

How can I change the amount of time of the customer login session? As an example, If a customer is shopping for several parts from a wholesale supplier they make take longer to shop. How can I ...
1
vote
0answers
121 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
78 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 ...
5
votes
2answers
74 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 ...