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
42
votes
12answers
58k views

Customer Login Doesn't Work in 1.9

I just did a fresh installation of Magento 1.9.0.1 and I am seeing some very odd behavior with the customer login form. In Chrome (version 36) the login form does not work. I am just redirected to ...
9
votes
1answer
1k 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 ...
14
votes
2answers
12k 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
6
votes
1answer
15k 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" ...
23
votes
4answers
6k 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 ...
7
votes
2answers
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). ...
23
votes
2answers
29k 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....
8
votes
7answers
19k 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 ...
8
votes
1answer
10k 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 ...
3
votes
2answers
4k 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 ...
11
votes
4answers
6k 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 ...
2
votes
1answer
8k 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 ...
8
votes
1answer
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. ...
11
votes
2answers
835 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 ...
7
votes
3answers
5k 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 ...
2
votes
2answers
1k 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 ...
2
votes
3answers
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 ...
1
vote
4answers
6k 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 ...
9
votes
2answers
2k 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\...
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 ...
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 ...
7
votes
3answers
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 ...
2
votes
3answers
2k 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 ...
8
votes
4answers
9k 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 ...
1
vote
1answer
843 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, ...
1
vote
1answer
298 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 ...
1
vote
1answer
100 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 ...
1
vote
2answers
6k 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::...
0
votes
1answer
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 ...
6
votes
1answer
180 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 ...
3
votes
3answers
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 ...
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\...
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
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 ...
1
vote
0answers
118 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 ...
1
vote
1answer
802 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 ...
1
vote
1answer
2k 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); ...
0
votes
1answer
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 ...
0
votes
1answer
861 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 ...
0
votes
1answer
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> <...