Questions tagged [cookie]

Denotes a question related to the Browser cookie.

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

Setting Cookies for Create Account Page

By enabling Template Path Hints for Storefront I have found out that /var/www/html/magento/app/design/frontend/Mgs/claue/Magento_Customer/templates/form/register.phtml is the template file for Create ...
0
votes
0answers
8 views

How to set “Secure flag and HttpOnly Flag” on all magento cookies?

I am seeing many of the cookies that do not have the secure & http only flag set on it. ; http://php.net/session.cookie-secure session.cookie_secure = true ; http://php.net/session.cookie-...
1
vote
0answers
10 views

Magento 1 configuration in .htaccess is not working

In magento i have added the below configuration in .htaccess file php_value session.cookie_secure 1 php_value session.cookie_httponly 1 <IfModule mod_php5.c> php_value session.cookie_httponly ...
2
votes
0answers
92 views

How to add “httponly” attribute set on existing cookie ? (Magento 1)

In Magento 1 I can see many of the cookie are without Secure flag and HttpOnly set on website. Is their any way to set Secure flag and HttpOnly set on all server Cookie ? I need to make all server ...
0
votes
1answer
21 views

Magento2 How to get PHPSESSID value of Guest User?

Magento2 How can I get PHPSESSID value for Guest User? I need to use it to identify frontend user in PWA, using the rest API
0
votes
0answers
25 views

Magento2: Varnish Test result fail

I'm trying to submit an extension for Magento 2.4 but can't pass the "Varnish Test" stage because of the cache that can't be set up on some pages (simple-product and category): "...
0
votes
1answer
31 views

How to delete the cookie while customer logged out in magento 2

I wish to delete cookies while the customer clicked the log out button? Can you please suggest us the best way to do it in magento 2
0
votes
0answers
9 views

Cookie Singleton Class

I am running magento 1.9 and I am trying to make some cookie checks for each api request in the backend. Thus, to make the checks as the first thing I am trying to find a common class which can work ...
0
votes
0answers
10 views

M2 Session Cookie “Secure” when only serving https

A security researcher pointed out to us that the session cookie PHPSESSID does not have the secure attribute. Looking around in magento admin panel I could not find the option to change that and ...
0
votes
1answer
48 views

Magento 2 : Use HTTP i mistakenly set no

In admin->stores->configuration->web->Default Cookie Settings->Use HTTP Only i mistakenly set no after that in admin are blank how to solve this.
1
vote
0answers
25 views

The cookie with “X-Magento-Vary” cookieName couldn't be sent

I get The cookie with "X-Magento-Vary" cookieName couldn't be sent. if I try to open a previous order in the customer account. Why is this happening?
1
vote
0answers
34 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 ...
0
votes
0answers
24 views

Workaround for CookieManager not being use the first time the session cookie PHPSESSID is set

I've upgraded a magento 2 store to the latest version and i'm running into this issue: CookieManager is not used the first time the session cookie PHPSESSID is set #27531: https://github.com/magento/...
0
votes
0answers
14 views

Magento 2 stores all messages in the cookie and uses Javascript to display these messages, creating problems for codeception-automatic testings

Magento 2 stores all messages in the cookie and uses Javascript to display these messages. That makes problems for codeception automatic testings of login functionality (which cannot use javascript) ...
3
votes
5answers
339 views

Cookiebot throwing console errors in Magento 2.3.4

I have added cookiebot script into head tag, here is the script <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="0000-0000-0000-0000" data-blockingmode="auto" type="...
1
vote
1answer
406 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
0
votes
1answer
31 views

Add to cart functionality is not working for any product

my add to cart not working, its showing nothing in cart for 2 stores and for 1 store adding a default product everytime, doesn't matter which product we added, its showing this exception.... We can't ...
0
votes
0answers
35 views

cookie notice not showing

I have Magento 2.3. Cookie Restriction mode is enabled in the admin panel but not showing on the home page. the style after load page [display is none ] but the style on CSS [display is block] this ...
0
votes
0answers
36 views

Magento 1 make all cookies secure and HttpOnly

Is there any way to make all the cookies to secure at a time In Magento 1 I tried the following Setting in Magento 1 configuration System->configuration->(General) > Web > session cookie ...
0
votes
0answers
18 views

Add To cart, Login(Frontend and backend) not working after upgrade Magento 2.3.3. Showing Invalid form key Please Refresh your Page in Chrome

I am constantly getting this Error Invalid Form Key in Chrome in various sections of website. Tried following things - max_input_vars = 200000 env.php has value 127.0.0.1 instead of localhost ...
0
votes
0answers
19 views

Magento 1.9.4 google analytics and restriction mode

I try to make the Magento 1.9.4 installation ready for GDPR. I have installed one extension for data. The last thing I need to do is to enable cookie restriction mode. When this is enabled the most ...
0
votes
1answer
26 views

How to show custom popup when customer click sign out button(want to show this popup for the customer once in a day) in magento 2

I have displayed a custom message in a popup for the logged out customer in Magento 2. For example what I have done so far. Once they click the "sign out" button, I have shown the popup to them. But ...
0
votes
0answers
16 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
30 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
191 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
29 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
50 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
167 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
420 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
79 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
79 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
82 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
268 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 here ...
0
votes
0answers
178 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 ...
1
vote
1answer
53 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
243 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
416 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 ...
1
vote
0answers
20 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
15 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
124 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
202 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
363 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
1answer
30 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
120 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
115 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
117 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 ...
4
votes
2answers
2k 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
35 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
74 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
34 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
2 3 4 5 6