Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
0
votes
1answer
11 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
1answer
31 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
19 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
36 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
30 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
13 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
14 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
34 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
0answers
49 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
57 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 ...
4
votes
3answers
178 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
73 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
62 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
22 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
22 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 ...
0
votes
0answers
36 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
51 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
80 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
27 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
60 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
31 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
38 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'...
0
votes
0answers
66 views

Unable to delete the cookie with cookieName = mage-cache-sessid Exception #0

in a Magento Multi store getting error suddenly which is 1 exception(s): Exception #0 (Magento\Framework\Stdlib\Cookie\FailureToSendException): Unable to delete the cookie with cookieName = mage-...
1
vote
2answers
287 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('...
0
votes
0answers
57 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
25 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
1answer
52 views

How to Create Custom cookie in popup Magento 2

I create custom popup with custom cookie and when page is load my cookie have dot befor domain name. How remove this dot?
1
vote
2answers
87 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
53 views

Users on IE and Edge have to log in twice on Magento 2 store

I was tasked on fixing JS console errors and browser testing for a Magento site that someone else developed (I assume the original developers quit). I got this finished, but now I am encountering a ...
1
vote
0answers
19 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 ...
0
votes
1answer
56 views

“Invalid Form Key. Please refresh the page” on Admin login page. I set the wrong cookie domain in the Admin panel. How to change that in the database?

Magento 1.9.4 I am setting up a new Magento 1.9.4 store but I am setting that up for an existing live store which is currently running Magento 1.9.1. I made the mistake of entering the other domain ...
1
vote
0answers
31 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
2answers
486 views

Magento2: How to delete cookies programmatically?

I want to delete cookies programmatically before as login customer.
3
votes
0answers
777 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
0
votes
0answers
10 views

Is the cookie “store” needed in Magento Admin? And what does it do?

For a very special case I need to know if the "store" cookie is used in Magento Admin, and why. I noticed it is set in Magento\Store\Model\Plugin\StoreCookie::beforeDispatch(), for both frontend and ...
0
votes
0answers
12 views

Does magento end a session when user password is reset?

Does magento end a session when user password is reset? If person A is logged in to magento and person B is logged in with the same account (at the same time), and then person A changes the password,...
2
votes
1answer
45 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 ...
1
vote
0answers
81 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 ...
0
votes
2answers
42 views

Loging on frontend failed with no errors

For a few hours I could not login on frontend. (on local domain https://www.magento2.loc, magento 2.2.5, developer mode). If I enter wrong username or password, yes, I receive error message. With ...
1
vote
0answers
33 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 ...
0
votes
0answers
211 views

Magento 2 - Security : HTTP Only cookie

Our Security team raised security issue cookie setting and asked to set HTTP only and Secure cookie. Looks like Magento functionality overrides HTTP only parameter. To fix this issue we have set ...
2
votes
2answers
55 views

Installation hangs at 73% - admin cookie set with expired date

The installation proceeds normally until the console log gets to: Module 'Magento_Weee': Installing data... At this point (73%) the user experience just hangs, while the browser repeatedly requests ...
2
votes
0answers
225 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,...
0
votes
0answers
103 views

Delete custom cookie in logout observer not working

I have an observer which is triggered properly on customer logout. The observer's execute method looks like this: public function execute(\Magento\Framework\Event\Observer $observer) { $this-&...
1
vote
1answer
46 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, ...
0
votes
1answer
88 views

Magento 2 cookies not saved correctly and deleted sometimes

I have strange behaviour in Magento 2.2.4 and also 2.2.5. If I add a product to cart it is saved correctly and minicart shows 1 product. Then I add another product and first added product is lost in ...
1
vote
1answer
1k 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
0answers
96 views

Magento 2 store switcher - store cookie not changing because of full page cache

I have a Magento 2 site with a basic store switcher that lets the user switch between 2 stores using the URL method (e.g __store=default). When I have FPC enabled, the cookie that sets the current ...
2
votes
0answers
42 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&...
1
vote
1answer
256 views

M2 > Recently viewed cookie lifetime

In magento 2.2.5 I added a recently viewed widget block that way: <block class="Magento\Catalog\Block\Widget\RecentlyViewed" name="category.recently_viewed" template="Magento_Catalog::product/...