Questions tagged [session]

Denotes questions about session management in Magento.

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

Store in PHP session in Magento2

I want to store values in the PHP session in magento2. So is it fine to do that or its not fine? Actually, I have tried it through the JS session. But whenever I tried to get values from JS session in ...
0
votes
1answer
16 views

JavaScript Session and Magento 2

Does Magento 2 allow JavaScript session storage? Description: Actually, I want to store data inside the session of JS and utilize it in other phtml files which are actually replacing the previous one....
0
votes
1answer
34 views

First session add to cart action empties cart / clears session

I'm running an Nginx sandwiched Varnish backed magento 2.3.6 shop in development mode, set up like: Frontend nginx port 443, varnish port 80, backend nginx port 8080, plus redis for session cache. ...
0
votes
0answers
29 views

Request parameters to filter SQL query using session

I want to filter the Coupon Usage table based on the request parameter passed in querystring. http://localhost/magento2.4/admin/dev_grid/index/index/key/...
0
votes
1answer
15 views

Cart lost for logged in customer. Retrieved only after adding item

We run a B2B webshop in Magento 2.3.5 and customers have to log in to be able to add items to the cart (Amasty Hide Price-module). However we are experiencing problems with disappearing carts: ...
0
votes
1answer
11 views

possible to write product custom attributes into session?

I have a product custom attribute, want to write in session when then product detail page was load. So I can get use the session value on the other block on the same page. Anyone can give me an advise?...
0
votes
0answers
14 views

Due to heavy traffic on site customer not able to loggedin/after reseting password not able to login Magento2

We are using Magento2.3.4-p2 cloud pro. Client has reported everytime that her customer facing issue for login/after reseting password they are not able to login while promotions are running on site. ...
0
votes
1answer
9 views

Magento 2 - I get logged out from backend/admin if I change a setting

I am getting logged out from the backend if I am changing a setting in a amasty extension. How can I debug it to find it out what is causing it?
2
votes
3answers
92 views

Custom plugin: problem with full page cache and customer session

A client uses the FME Restrict Customer Group module to give customers that are logged in a selection of products based on a customer group. He wants to give customers the option to toggle this ...
0
votes
1answer
16 views

How to increase session time of magento 2.4 admin panel

It is annoying to log in to the magento admin every few minutes, I find this solution to increase the time I hope it helps you en la version actual 2.4 debes ir Store-> Configuración-> Avanzado-&...
0
votes
0answers
4 views

Magento 1 session cookie empty (frontend=) only on some instances

I have issues on only one ISP (Internet Service Provider) where any request will always redirect to homepage. I reiterate - I only see this behaviour with one specific ISP, and very consistent - 95% ...
0
votes
1answer
21 views

What happens to mage-cache-storage (local storage) when the browser window is closed?

Magento uses mage-cache-storage (local storage) for local storage of visitor-specific content that enables ecommerce functions. The Expiration policy is session. Suppose customer is using the website ...
0
votes
0answers
7 views

Magento 1.7 - code that sets HTML headers (Category redirecting to Homepage) - (frontend=deleted header)

Which class / module handles HTTP headers for Magento (PHP side)? I have a strange issue that on one particular ISP (Internet Service Provider) only when a customer accesses the website (category page ...
1
vote
2answers
57 views

Wrong Navigation Menu Shown to Customer After Programmatically Assigning B2B Company and Customer Group [Private Catalogs]

I created a custom module that automatically assigns a customer to a company and customer group during front-end registration using a new field that allows the customer to enter a company code as a ...
1
vote
0answers
16 views

Share session within different domains

I have one website, one store and multiple store views. One store view has different domain. I want this store view to have the same session, if product is added in one store view, should be also ...
0
votes
0answers
35 views

Magento2 - Checkout session returning empty if cache is enabled issue

I am setting the custom checkout session value in controller and I am not getting that value in view model. If cache is disable I am getting the get the session value but If cache is enabled If ...
0
votes
1answer
32 views

Load popup only based on session timeout

I have initialized a popup var popup = modal(options, $('#notification-modal')); $("#notification-link").on('click', function () { $("#notification-modal").modal("...
0
votes
0answers
13 views

Cookie issues with Magento 2

I set the customer cookie to 1 year (525600) under stores/config/customer/customer config for both Online Minutes Interval and Customer Data Lifetime. Magento still logs my customers out after 15 ...
0
votes
0answers
15 views

How to create multiple active quotes for a single customer

I want to create multiple quotes for a single customer and assign the quotes based on some identifier in the quote table. For checkout, I want to use a single quote every time but in the quote table ...
0
votes
3answers
33 views

I am trying to get current quote details in an phtml

class Productinfo extends \Magento\Framework\View\Element\Template { protected $checkoutSession; public function __construct( \Magento\Backend\Block\...
0
votes
0answers
74 views

Restore Checkout Session Data in magento 2

We are facing a session issue when returning from payment gateways(CCAvenue). It's treated as a new session on the recent version of Chrome, edge. So, we are trying to create a session after getting ...
0
votes
0answers
12 views

frontend button only accessible to admin

{ $dateTime = $this->_objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime'); $adminConfig = $this->_objectManager->create('Magento\Security\Model\...
0
votes
1answer
20 views

how to get custom session in magento 2?

I have tried this but this is giving empty log file. What should I do to get output for this: public function isAdmin() { $writer = new \Zend\Log\Writer\Stream( BP . '/var/log/myfile.log' ); ...
0
votes
0answers
182 views

Magento 2 Session Expire after return from payment gateway

We are facing the session expire issue, while, return from payment gateway. We are integrated CCavenue Magento 2.3.4 Toolkit, we are tried following ways Cache => somebody told maybe problem of ...
0
votes
2answers
54 views

Current user duration or current user page count in magento 2

I have a custom module . In my observer i have to know the current user duration & current user ip in fronted . So i write the code for user ip . Now if a user visit my website i want to get is ...
1
vote
0answers
24 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
114 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
0answers
106 views

Magento 2 in iframe add to cart issue

I'm trying to show Magento 2 inside an iframe. Site loading fine but add to cart and login not working when add to cart getting below error [2020-09-08 08:34:45] main.DEBUG: Request validation failed ...
0
votes
0answers
79 views

magento 2 iframe src code login not wokring

Hi I am facing some issues add to cart and login with iframe. I have created i frame code <iframe id="Pawan" frameborder="0" align="middle" width="100%" ...
0
votes
1answer
34 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
9 views

Admin session expiry not working despite being set in admin and php settings

Admin session expiry is not working in Magento 2 (2.3.5-p1). We have it set in the backend admin configuration: We also have it set in the php session.gc_maxlifetime: Still though, session expiry in ...
0
votes
0answers
26 views

Magento 2: How to set Custom Session Lifetime?

I have created a custom session in Magento. I'm using it for custom user management. when login successfully it set the user data in the session. I have to set 1 day lifetime for that session but not ...
2
votes
1answer
526 views

Warning: Cannot use a scalar value as an array in… SessionManager.php on line 492

now I have an error in Magento 2 that shows this error: There has been an error processing your request Warning: Cannot use a scalar value as an array in /home/web/domains/web.com/public_html/vendor/...
0
votes
0answers
13 views

M2 cart will be empty after login

many customers have following problem: They put products in the cart They login The cart ist empty I am not able to reproduce that issue and I have also tried different browsers. The customers have ...
0
votes
0answers
50 views

Magento 2.3 - Multi Website Exception: Warning: SessionHandler::read(): The session id is too long or contains illegal characters

I am using multi-website store, initially main website store working good after visit second website store then visit main website store i am getting following error, Exception: Warning: ...
1
vote
1answer
36 views

cannot get session value in different events

I'm using two different events controller pre dispatch and controller post dispatch.I have set customvalue using catalogsession in predispatch event and try to get the value in post dispatch event....
0
votes
1answer
143 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
99 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
16 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
20 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
34 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
77 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
136 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
51 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
43 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
19 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
45 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
77 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
67 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
11 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 ...

1
2 3 4 5
13