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 ...
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....
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 ...
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 ...
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
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 ...
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 ...
11
votes
1answer
1k views

Access Magento session from external site

How do you log in an existing customer/user from external application or bypass his session after logging into Magento to other application?
11
votes
1answer
828 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 ...
10
votes
2answers
2k views

Can't Login to Admin after Installing Extension

Apologies in advance for the thin details on this one. I sell a Magento extension. With the latest release, I've started getting an odd bug report from a few users. Specifically, after installing ...
9
votes
2answers
12k views

When does Magento use sessions and when cookies?

I know Magento has following core functions for session and cookie handling: Mage::getSingleton('core/cookie'); Mage::getSingleton('core/session'); When does Magento set Cookies and when PHP ...
9
votes
1answer
999 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 ...
9
votes
2answers
4k views

Varnish and Turpentine

I am finding that whenever I restart Varnish on my server, I am loosing my sessions for my users. This is is turn making my customers loose their shopping carts. Is this normal behaviour for Varnish ...
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\...
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
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
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 ...
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 ...
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. ...
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 ...
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 ...
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). ...
7
votes
1answer
290 views

Multiple cookies for CUSTOMER_SEGMENT_IDS when placing order

During the Ajax call to submit order in one-page checkout process, I'm getting cookie "CUSTOMER_SEGMENT_IDS" multiple times, with "Deleted" as value. This is causing header size to go much beyond the ...
6
votes
3answers
5k views

How to set cookie in magento 2?

I need to set a value to the cookie in a phtml file and I need to get it's value in another phtml file. Is it possible to set and get the values using jQuery?
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" ...
6
votes
2answers
3k views

How to avoid redirection to “enable-cookies” page during controller unit test?

I'm doing a very simple controller test using Ecomdev_PHPUnit: class Foo_BarWishlist_Test_Controller_IndexController extends EcomDev_PHPUnit_Test_Case_Controller { /** * @test * @...
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 ...
6
votes
4answers
369 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?
6
votes
1answer
2k views

Login Does Not Work Because of Subdomain Cookie

We have a multi site/store which is on a subdomain level (Magento v1.14.1.0): main.com store1.main.com store2.main.com Logging in without the main.com frontend cookie enables the login in store1....
6
votes
0answers
1k views

Multi store with different domains, cookie store is causing problem

Please note that it's not another "how to setup multistore". I've read other questions and it seems that my problem is not described. Following are not answering my question: set default page to ...
6
votes
0answers
74 views

Why is admin logging me out?

I go to the admin login in Chrome after clearing all cookies and everything. First thing I check Chrome cookies. I see only one cookie. Name: adminhtml Domain: .mysite.com Path: / Created: ...
5
votes
2answers
2k views

Cookie Issue on Multistore Installation

I have following issue: I have a multistore installation where I have a main store (example.com) a second store for members only (sub.example.com), which has the login page as the start page on that ...
5
votes
1answer
1k views

Multi Store Cookie Issue

We have two stores in our Magento 1.9 installation: a retail website, coolstuff.com (no www prefix) and a wholesale website, dealer.coolstuff.com. Following the launch of our website with HTTPS forced ...
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 ...
4
votes
2answers
3k views

Magento 2 set cookie on a phtml file

Can anyone please tell me how to set and get cookie on a phtml file in magento 2?? I don't want to create or use any extension for this.
4
votes
1answer
2k views

How to set cookies in Magento for WWW domain

I'm trying to make sure I have set the Cookie Domain correctly. I have my website set up for https://www.example.com. I have the Cookie Domain right now set like this: .example.com When I look at the ...
4
votes
1answer
2k views

Mage.Cookies what for?

We are thinking about removing the js.phtml from our template and I can't find a reason why not. What is Mage.Cookies for and were is it used? Did I oversaw anything?
4
votes
1answer
693 views

Magento 1.9.1 Upgrade Causing Cookie to be reset

We have an AWS ELB setup for our Magento application. The ELB strips away https:// and replaces it with http://. So in our nginx we make use HTTP_X_FORWARDED_PROTO to stop Magento from redirecting to ...
4
votes
1answer
2k views

where does magento set frontend cookie in response headers for first time request?

Please tell the location or file where magento set the value of key 'set-cookie' as 'frontend= hashcode' when you hit the request for the first time.
4
votes
5answers
8k views

Magento cookie issue..Customer can't login

I am facing weird problem that some customer can't login to their account.When customer try to login ,it redirect to same page without any error.it happens user who visited the site before. And for ...
4
votes
1answer
3k views

Magento frontend login problem

I’m unable to login in my Magento mobile store. I have multiple website Magento store. My main website URL is abc.com and for mobile it is m.abc.com. Perfectly works. I am using different theme for ...
4
votes
1answer
7k 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 ...
4
votes
0answers
193 views

Missing HTTP flag and Secure flag on form_key and mage-messages

As per my security checking and testing in Magento 2.1, I see that secure cookie or HTTP only flag not set on form_key and mage-messages.For the security reason, we need the cookie to be secure. Can ...
4
votes
0answers
574 views

Cookie issue with Internet Explorer

I have an issue with my Magento installation (Version 1.9.2.2). It works in every browser (tested with Chrome, Safari, Firefox, and Opera) but not in Internet Explorer. In IE, Magento doesn't set any ...
3
votes
1answer
9k views

Admin login problems. What are the correct settings of Session Cookie Management and Session Validation Management?

What are the correct settings for Session Cookie Management and Session Validation Management? In a single store setup In a multi store setup Session Management Cookie Path Cookie Domain Use HTTP ...
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 ...
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
1answer
221 views

How to Set Session Cookie Based on Query-String Param in Magento

I'm building a Magento sandbox environment and need to set a session cookie based on a value in the query-string. The value in the query-string will be used to set an account ID for another service ...
3
votes
1answer
1k views

Set Magento Cookie Variable Using jQuery click() event

I am in the process of trying to set a Magento cookie variable on click using jQuery but can't seem to get it too work. Would the best way to do this be to hit a controller action using ajax when the ...