Questions tagged [cookie]

Denotes a question related to the Browser cookie.

Filter by
Sorted by
Tagged with
43 votes
12 answers
62k views

Customer Login Doesn't Work in Magento 1.9

I just did a fresh installation of Magento 1.9.0.1 and I am seeing some very odd behaviour with the customer login form. In Chrome (version 36) the login form does not work. I am just redirected to ...
Josh Pennington's user avatar
9 votes
1 answer
2k views

keeping customers logged in after deleting var/session in magento

we are facing some problem in live site as below link. For my knowledge if we delete var/session folder, than we have to login to both frontend and backend . To solve this problem : Live site blank ...
Baby in Magento's user avatar
19 votes
2 answers
22k views

How to add Cookie Magento 2?

I want to add a COOKIE with value and some duration, how to do it in magento 2. Thanks
Huan Dao's user avatar
  • 607
6 votes
2 answers
17k views

How to bind an action after customer login success using Magento?

I'm using Magento 1.4.1.1. After logout success, customer is rooted to "logout.phtml" first and "home page" later. Is there anyway I could make Magento run couple of "php" codes after "login" ...
jolyqr's user avatar
  • 231
23 votes
4 answers
10k views

Live site blank in frontend or keep on loading and never load

I am facing Strangest Problem ever in magento. we are using 1.9.0 version. from last 2 months, our live site is "blank" or "keep on loading" for used browsers. Means in this browser we visited the ...
Baby in Magento's user avatar
7 votes
2 answers
12k views

Double frontend cookies causing intermittent login issues

The site runs Magento CE 1.7.0.2. Customers have been reporting issues with logging in. I've been able to replicate this myself on Safari only (do not know the exact steps to replicate yet though). ...
Francis Kim's user avatar
  • 2,973
0 votes
1 answer
668 views

Magento 2.4 cookie not setting via observer code

Please help me to find the reason that the below added cookie not setting. events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
VIPIN A ROY's user avatar
24 votes
2 answers
33k views

What's the correct cookie config for a Magento site split across multiple instances as subdomains?

The problem A large site uses separate instances of Magento for different geographic regions so the businesses are isolated. Example: site.com north.site.com south.site.com east.site.com west.site....
Brendan Falkowski's user avatar
8 votes
7 answers
20k views

Magento 1.7.0.2 cannot login to admin locally

I installed locally magento 1.7.0.2 BUT i cannot login to admin panel! WHAT TO DO?! I try absolutely everything solution in WEB! I tried these suggested solutions Clear the contents of the ...
user avatar
11 votes
4 answers
9k views

Cookies not working with subdomains

We have a main site at example.com. Logging into example.com/admin works fine there. But on a testing site at test.example.com/admin I cannot log into the admin without first deleting all example.com ...
Buttle Butkus's user avatar
8 votes
1 answer
11k views

Erratic cookie-related login problem

this will be a long one... I've got a bad case of erratic login failure, due to wrong cookie management. First of all, I'm managing a closed store (B2B) in which customers have to login before they ...
slamarca's user avatar
3 votes
2 answers
5k views

Can't log into Secure (SSL) Magento site on front end in Chrome

I've been having a constant struggle with being able to log into the site www.dragondirectsales.com. It's a magento 1.9.1 site. The site has a subdomain, cas.dragondirectsales.com. Everything seemed ...
runtimerror's user avatar
3 votes
1 answer
10k views

how to use cookie-free domains in magento? [closed]

I analyzed my website on Gtmetrix.com for optimization and the result was this: There are 245 components that are not cookie-free: http://mysite.com/media/css/dabf35e7cd79eb387a68eed1d5f3f925.css ...
Moh3n's user avatar
  • 859
33 votes
18 answers
67k views

Unable to login to admin (no error message) stuck at login screen

This will be a self-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 time around on ...
Mubashar Aftab's user avatar
12 votes
2 answers
1k views

What's the last event dispatched before content is sent to the browser?

I need to set or update a cookie, but I want to ensure that all (or as much as possible) of the request processing occurs before my cookie generation code runs. i.e. if the user logs in, I want to ...
Jim OHalloran's user avatar
8 votes
1 answer
4k views

Is magento http/https secure or should the entire website be forced to use https?

I'm setting up a magento website but one thing i've noticed is https can be used only for secure content such as login pages and account details etc. This means on product pages regular http is used. ...
Gareth's user avatar
  • 81
7 votes
3 answers
6k views

Cookie Restriction Mode Translation

With latest release, CE 1.8.1 cookie_restriction_notice_block went to before_body_end in layout (/app/design/frontend/base/default/layout/page.xml). But users don’t realize about that notice nor that ...
Marc's user avatar
  • 383
3 votes
2 answers
2k views

Browser Cookies are killing our LIVE site

we have a LIVE magento site from last one year. recently we are facing very difficult problem from Browser cookies. Frontend is not opening and keep on loading and never load. we are using HTTPS ...
Baby in Magento's user avatar
2 votes
3 answers
6k views

Chrome and SSL: problem with login and cart

I have a domain with SSL and some problems ONLY with Google Chrome (v. 39.0.2171.95 m). When a user tries to login with SSL (https: //www.mydomain.com/customer/account/login/), he returns to the ...
user19011's user avatar
1 vote
4 answers
7k views

Magento Connect Manager login loop

When trying to install new extensions through Magento Connect Manager, the page shows a login prompt. Upon logging in the page will just reload without installing or doing anything. The same behavior ...
UnknownDev's user avatar
12 votes
3 answers
16k 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 ...
Mohammad Hammadi's user avatar
10 votes
8 answers
26k 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 ...
Yogesh's user avatar
  • 563
9 votes
4 answers
12k views

Sharing Sessions Between Stores with Different Domains

I have three websites on a Magento installation, each has its own domain. Now due to web-browser security you cannot access cookies from another domain, nor sessions. Somehow I need to be able to ...
lukefowell's user avatar
  • 1,967
9 votes
2 answers
6k views

Magento 2 cookies not working when all cache is enabled

In an observer I'm setting a cookie like this: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cookieManager = $objectManager->get('Magento\Framework\Stdlib\...
Sam Hendrickx's user avatar
7 votes
3 answers
4k views

Magento cookie bug with WebKit based browsers

There is a reasonably common & well documented cookie-related bug/issue with Magento and Chrome (looking at the others' issues - possibly WebKit and IE at times). Whether this is due to a common ...
Francis Kim's user avatar
  • 2,973
6 votes
1 answer
194 views

How to set understory session

I have use Enterprice edition I want to set the session for magento site like Gmail. The user login, the session will set. Once user click logout button the session will destory. Other wise the the ...
VijayS91's user avatar
  • 1,788
5 votes
1 answer
12k views

Magento customer login and admin login session/cookie issue

I know this questions asked many times but solutions were used for some people not all. I am running Magento 1.9.2.4 community version. We are facing an issue like whenever the customer tries to log ...
satish's user avatar
  • 366
4 votes
1 answer
2k 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 ...
Vaishal Patel's user avatar
4 votes
3 answers
8k 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 ...
rajat kara's user avatar
  • 1,219
3 votes
3 answers
8k views

Successful Logins redirects to Login Page - Magento

I have scoured the internet but cannot find an answer, and the answers I find are to having Magento locally installed (MAMP/WAMP) etc. I have installed Magento www.domain.com (1.7.0.2) and also in ...
Mayur's user avatar
  • 33
3 votes
0 answers
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
Krunal Pathak's user avatar
3 votes
0 answers
379 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\...
Jigar7521's user avatar
  • 131
2 votes
0 answers
672 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 ...
Jens's user avatar
  • 401
2 votes
3 answers
3k views

Show used cookies Magento website

Is there any way how i can create a list of ALL cookies (incl. 3rd party cookies) which my Magento website is using? I've searched throughout Magento, searched on Google, searched the forums, but i ...
John's user avatar
  • 107
2 votes
1 answer
2k 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 ...
Bhavesh's user avatar
  • 61
2 votes
2 answers
4k 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('...
summu's user avatar
  • 847
1 vote
1 answer
4k views

jQuery cookie in magento2 error?

I have this function: jQuery('#sort_order_by').change(function(){ var productUrl = 'product.phtml'; var value = jQuery(this).val(); jQuery.cookie('sortorderby', value); ...
xanka's user avatar
  • 2,114
1 vote
1 answer
1k views

Setting cookie on login

So I've installed a new chat for my website but need to do one last thing, and that is to set a cookie on login, and delete it on log out. Code I'll be using for login: setcookie('cc_data',$userid, ...
taskle's user avatar
  • 365
1 vote
1 answer
926 views

Grabbing storeview from cookie (after using language selector)

I have written a custom function to set our MAGERUNCODE based on the accept language and the uri request (beeing /). THis works fine. Now I have 1 remaining issue. And this is when the customer uses ...
snh_nl's user avatar
  • 5,442
1 vote
1 answer
449 views

Translate Magento Admin config settings to config.php settings

I want to modify a setting, which I know how to find and change in the Magento Admin, - but I want to modify it in the config.php file. Which way can i find out the configuration path / syntax within ...
hey's user avatar
  • 1,137
1 vote
0 answers
150 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 ...
Tero Lahtinen's user avatar
1 vote
2 answers
7k views

Magento Set New Cookie Value

This is driving me nuts! I'm trying to set a new cookie value: protected function setCookie($cookieName = null, $cookieVal = null) { $model = Mage::getModel('core/cookie'); $cookieVal = Mage::...
Jongosi's user avatar
  • 1,511
1 vote
1 answer
514 views

Magento 2 saving cookies works only on backend

I have followed this question on how to do cookies in Magento 2, and it works, except the cookie doesn't save when I'm on frontend. However it reads well on frontend if it already exists. I have tried ...
kajacx's user avatar
  • 111
0 votes
1 answer
2k views

Can't login to second store on subdomain

I have a Magento site I've acquired. It's been upgraded from 1.6.x to 1.9.0.1. There were a couple of issues related to the new form_key tag which were fairly easily resolved, however there's one ...
SpoonNZ's user avatar
  • 121
0 votes
1 answer
2k views

Magento Cookie Value Not Set

I'm trying to conditionally set a cookie IF a certain query string parameter exists. My Class is an observer. The config.xml code: <frontend> <events> <...
Jongosi's user avatar
  • 1,511
0 votes
1 answer
901 views

Where can I change the value for direct_url privacy-policy-cookie-restriction-mode?

Although I can edit the cookie_restriction_notice_block to change the link to the relevant Privacy Policy page I would like to be able to change the value of {{store direct_url="privacy-policy-cookie-...
jscar's user avatar
  • 787
0 votes
3 answers
8k 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://i.stack.imgur.com/hWWmp.jpg I would like it to read some different text and ...
Jake Punton's user avatar
0 votes
1 answer
5k views

How can I set an explicit cookie domain and still login

I am setting explicit cookie domain in the config, as my Magento site is on www.mydomain.com and I want to share cookies with a subdomain sub.mydomain.com. If I leave Magento to set its default ...
Robert Egginton's user avatar
0 votes
1 answer
1k views

Find what cookies are creating in browser

we have a domain www.xyz.com 1.9.0 site. we are facing some problems with cookies. is magento set 2 types of cookies, one for xyz.com and another for .xyz.com? I want to know how to check what ...
Baby in Magento's user avatar
0 votes
3 answers
1k 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....
Rafael Corrêa Gomes's user avatar