Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

Customer session issue for login users in magento1.9.4.4

I have problems with front end customer login, I have checked it with same system and login with two different different customer detail on to the different-2 browsers. On chrome I have login with ...
0
votes
0answers
18 views

How to disable auto logout customer function in magento 2

I have some customers in my Magento2 application, now I try to delete them from backend. When these customers status is "Logged-in", they will auto logout by the system when they refresh the page. ...
0
votes
0answers
9 views

Can the modal widget appear once per session?

I'm working on a modal triggered upon page load which I would like to appear once per session. Is this possible? Here is the test page https://www.dealerboots.co.uk/test <div id="custom-popup-...
0
votes
0answers
10 views

Magento CE 2.2 - Cookies/Cache/Session issue when Server Load overloads

Aside from the obvious answer of upgrading the amount of CPUs on our webhost to alleviate the traffic and prevent Server Load overloads, we are trying to find out what we can do about the cache/cookie/...
1
vote
1answer
29 views

My local.xml file doesn't have a session tag defined. Is it normal?

I was wondering changing the way Magento deal with sessions and for my surprise I discovered my /app/etc/local.xml doesn't have a session_save tag set. Is it seems to be a problem? Is it safe to set ...
0
votes
0answers
23 views

Magento2 under load balancer with redis session storage. Different form-key issue

I have 3 diff nodes(php,nginx) running under a load balancer. Session (along with cache but diff redis db) is stored in redis storage in remote server which is accessible to all 3 nodes. When trying ...
0
votes
1answer
18 views

Magento 2.3.4 multi-store customer session transfer

I have installed Fresh Magento 2.3.4, and set multiple store with websites on sub-domains. I want customers to signin in one store and then automatically signedin on another store on sub-domain. I ...
0
votes
1answer
32 views

Unable to log in to Magent 2 backend - login times out

I am unable to log in to my admin panel, the login keeps timing out whatever I do. Our test system had the same problem but a reboot solved the problem this time nothing seems to help. I use varnish ...
0
votes
0answers
12 views

User session mixed up when varnish is enabled

In my magneto 2.3 session, I am saving & retrieving some data in `checkout/session. Sometimes, user session gets mixed up(Gets data from another customer's session) but it's working FPC(Varnish) ...
0
votes
1answer
14 views

Redirect user to either admin or frontend based on login status

I want to build a custom controller, which works as follows: if user already have admin session, redirect user to admin page A if user does not have admin session, redirect user to storefront page B ...
0
votes
1answer
17 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
25 views

Magento 2 - Invalid session http_user_agent value

Hi all i keep facing this error in a randomly. Magento version 2.2.2. If i reload the page than the it works fine, but after sometime again i get this error. Please let me know if anyone have faced ...
0
votes
0answers
13 views

Subdomain shows 2 PHPSESSID with main domain

I have a Centos Server running 2 Magento 2 sites. www.domain.com sub.domain.com In sub.domain.com, I see 2 PHPSESSID. In the Domain section in first it is stated as www.domain.com and in the ...
0
votes
0answers
9 views

Save custom data to ('checktout/session') when product added to cart and remove when removed

Save custom data to ('checktout/session') when product added to cart and remove when removed So i need to add custom data for each product when customer adds it to card and remove it when customer ...
0
votes
0answers
93 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
16 views

When transferring data through $customerSession, I receive data locally, but not on the production

I have a custom functionality for creating an order, I want to transfer the custom LastOrderId to the success page to which the user gets after submitting the form. The controller responsible for ...
0
votes
0answers
19 views

MAGENTO2 : Redirect to 404 page if the user directly hits the category url

I have created a custom page with a form to enter a value If this value is correct then and then only I want the user to redirect to that particular product category page depending on the value ...
0
votes
2answers
17 views

New order email from admin panel can only be sent once per session

Magento 2.3.4 here. I can only send out 1 order email per admin session from the admin panel. Then it fails with no error message. If I log out and in again I can send another email. But just one. ...
1
vote
1answer
35 views

How to increase admin log out time

I have tried but not working. To increase session to time for Admin : Stores -> Configuration -> Advanced -> Admin -> Security -> Admin Session Lifetime (it must be in seconds). Uncheckd uses ...
0
votes
1answer
32 views

Display content for specific user

I'm trying to display content for admins only on the frontend (product view), however, with FPC enabled, once an admin opens that product, all the other users will see that same content. I have the ...
0
votes
1answer
168 views

Magento 2.3.3 - Varnish session issue

I'm having a bug with the Varnish Caching and after investigating and searching for a solution, I'm still not able to solve the problem. The FPC is working fine most of the times, but sometimes the ...
0
votes
1answer
25 views

Magento1.8.1.0 - Admin session timeout won't go above 15min

I have an issue with the Admin session timeout in Magento shop older version 1.8.1.0. I have configured the value in seconds -> 3600 in Admin configuration but it still closes Admin session in 900 ...
0
votes
0answers
6 views

How to allow one email/password to select from multiple customer accounts to access in one store?

Customer has buyer logins that purchase from multiple accounts on one Magento 2 store. They are using fake emails to accomplish this. They are asking if we can create a cross reference table to ...
0
votes
1answer
46 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
0answers
20 views

Magento 2 | Varnish cache pages per session [duplicate]

We have a magento 2.2.6 shop, with 20k products. We use varnish for fpc. It is configured properly, and we can verify by visiting a page two times. The second time the ttf is really low. Problem is ...
1
vote
0answers
17 views

Why do I see action notification messages on other pages?

Sometimes when I added products to the cart or I type wrong my password, I see the warning message in the checkout success page. How could I fix it?
4
votes
1answer
76 views

Is the session table supposed to be cleaned up automatically?

So we have a 20 Mio rows, 20 GB size session table. Is this supposed to be cleaned up automatically and that is a bug in our customization or is this a feature? I will run DELETE FROM session ...
0
votes
2answers
140 views

how to change customer session data in Magento 2?

after customer login, I want to change some of the session params like customer name. I do like this $this->_customerSession->getCustomer()->setName("ddddddd"); also i tried this $this-&...
0
votes
0answers
25 views

Getting Session Handler Exception when reloading the cart page after adding the product and with price update from Magento 2 admin

I am getting the Session Handler Exception 1 exception(s): Exception #0 (Exception): Warning: SessionHandler::read(): Unable to clear session lock record in /home/aba7pels9rrm/public_html/vendor/...
0
votes
0answers
58 views

Magento 2: How to get Browser Session ID in custom module

I need to get Browser Session ID in my custom module. Does any have idea how to get Browser Session Id in custom module. Any help would be appreciated. Thanks!
0
votes
0answers
19 views

Magento2.3.3 fresh installation getting error customer-data.js [object Object] only in firefox

With Magento 2.3.3 fresh installation without any modification I am getting error at console customer-data.js [object Object] This happens only in Firefox and not in Chrome. Tried flush and reindex ...
0
votes
0answers
19 views

Provide selected products from product_listing.xml

i have new page, with uicomponent form. And i have button in product_listing.xml uicomponent, with URL to this new page. I need to pass all product IDs that were selected in product_listing.xml to my ...
-1
votes
2answers
248 views

Magento2: How to set custom session in controller?

How to set custom session in my controller ? I'm set the session in controller but I got an interceptor error in Magento2.
2
votes
0answers
47 views

Redirect to Magento2 website with session id

We have a small requirement like a punchout payload concept. The user will redirect to Magento 2 website from 3rd party with the session_id. We want to capture that session_id and implement our logic. ...
1
vote
0answers
30 views

Magento 2 set and access variables between controllers

I have a problem with storing and accesing variables accross controllers. i have controller 1 there i set variable ( tried registry and session ) in block of that controller i have both and registry ...
1
vote
0answers
23 views

Admin session time out issue in Magento 1.9

Admin Config settings: System => Configuration =>Web => Session Cookie Management => set Cookie Lifetime 259200. And Go to => System => Configuration => Admin => Security => set Session Lifetime ...
1
vote
0answers
36 views

Export sessions data from files to REDIS

We are moving from single server to multiple server setup for our store. The problem is that we are using file cache type and we want to preserve those sessions (long expiration, per management ...
1
vote
1answer
240 views

Redis Session Error: Successfully broke lock for ID sess_ebfc12b22fa8c8e1fb81dca122fcdda6 after 5.01422 seconds

I am using Redis to store sessions and getting the error: [2019-11-26 09:51:32] main.INFO: ip-10-0-0-78|28852: Successfully broke lock for ID sess_ebfc12b22fa8c8e1fb81dca122fcdda6 after 5.01422 ...
0
votes
0answers
86 views

Magento 1.9 Storing JWT in Server to Server communication

Storing JWT in the server side is a bad practice. But most of the time we say that in the context when the API calls are made from the client side. Currently I am doing an implementation where from ...
0
votes
0answers
15 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 ...
1
vote
0answers
17 views

Magento 2 - Empty Cart and Quote behaviour

When the session quote has no visible items should it be set as inactive or still kept as active? Does anyone know how to do it? Thanks in advance.
0
votes
1answer
138 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
0answers
20 views

Many session files are being created?

Magento 1.9.3.7 I installed the latest patches (10570,10752,10888,10975,11086,11155,11219) today without any problems. Now I figured that the /var/session folder had about 5.5 million session files! ...
0
votes
0answers
14 views

Session unsetting itself every time I navigate away from a page

I need to be able to store some custom session variables that exist for the custom, regardless of whether they're signed in or not, but for some reason my sessions keep deleting themselves. I have ...
0
votes
1answer
199 views

Magento 2.3.2 Autoscaling and User Sessions

We have magento running on AWS Fargate behind a load balancer. It works great when it is not scaled(i.e only one task is running), however when it scales to 2 or more tasks I am not able to login as a ...
2
votes
1answer
2k views

Error “Your session has expired” when click on add to cart in magento 2.3

I am new in magento, I am creating website in magento 2.3 and I have installed FreeGo theme in my magento website. But when i click on product's add to cart then it's giving me error--> Your ...
0
votes
0answers
48 views

magento 2 too many session file

I know it may be asked before that for Magento 1 and I remember that I had this problem and fixed it by below config in php.ini session.gc_probability = 1 session.gc_divisor = 1000 session....
0
votes
0answers
27 views

Magento 2.2.9: wrong data when creating Customer Session from Session Factory

I´m trying to get Customer data and insert it into some hidden inputs on a form. It checks if there is a customer logged in, but the data is from another customer, and it doesn't change even if I log ...
0
votes
1answer
29 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 ...
0
votes
1answer
76 views

Magento 2 : Setting session variable not working

I have a problem with session variable. Basically it's not working and ruining what is working. Here my code : app/code/vendor/CustomerZipCode/Block/Ziplist.php <?php namespace Vendor\...

1
2 3 4 5
12