Skip to main content

All Questions

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

The "remote_addr" session value is invalid

ON the backend Store>Configurations>General>Web we have set the "Session Validation Settings" which shows these options: Validate REMOTE_ADDR: YES Validate HTTP_VIA: YES Validate ...
Magecomp Product Team's user avatar
0 votes
0 answers
29 views

Magento 2.4.4p4 EE - GTM Session Regeneration on Every Page Load

I'm encountering a discrepancy between user/session activity and transaction count in Google Analytics (GA) for a Magento 2.4.4p4 Enterprise Edition project. The culprit seems to be frequent GTM ...
Mohd Farhan Bin Ramli's user avatar
2 votes
2 answers
956 views

Where does Magento 2 save session?

Where does Magento 2 save session files? According to the documentation, it is possible to save in the database, in redis, in memcache or in files, but in the default installation it looks like this. ...
Bruno Depieri Barduchi's user avatar
0 votes
0 answers
89 views

Add to Cart Not Working After Upgrade to 2.4.6.-p3

after upgrading to Magento version 2.4.6-p3 , Add to cart not working, it just shows adding and then nothing happens. also when I go from category page with options products , it does not shows any ...
Mark Philips's user avatar
1 vote
0 answers
832 views

How is PHPSESSID cookie being set in Magento 2?

The only place I could find where the cookie actually not being initialized but renewed on every request is renewCookie() function in Magento\Framework\Session\SessionManager. Whenever there is a new ...
Vivek Kumar's user avatar
  • 5,740
1 vote
0 answers
389 views

Problem with session of magento 2.4.5

whenever I activate the option 'Validate REMOTE_ADDR' it happens this error. I don't know what to do... The "remote_addr" session value is invalid. Verify and try again. and in admin, i'm ...
Vinicius Araujo da Silva's user avatar
0 votes
1 answer
206 views

Magento 2 Admin Panel is Very Slow

Right now, my admin panel is very slow. I wait min 15 sec to load every grid. I created new account and logged in with it. There isn't any problem, it loads with 2-3 sec. What should i do?
Muzaffer's user avatar
1 vote
0 answers
628 views

Redis connection errors (session handling)

I am using Redis cache for session storage in my Magento 2.4.3-p2 based store. The app/etc/env.php setting looks like 'session' => [ 'save' => 'redis', 'redis' => [ 'host' =&...
MagePsycho's user avatar
  • 4,650
0 votes
1 answer
317 views

Registry & Services

Can Any body explain me Why Magneto used registry and now why we use Services for what purposes instead of Registry.
Rana Zain's user avatar
  • 699
0 votes
2 answers
722 views

Magento 2.3.5p2: The "system/security/max_session_size_admin" path doesn't exist

I am getting this error when I run the command: bin/magento config:set system/security/max_session_size_admin 0 Error: The "system/security/max_session_size_admin" path doesn't exist. Verify ...
mechanic's user avatar
  • 440
0 votes
2 answers
2k views

How to fix admin session issue to login to the admin panel?

After upgrading my Magento 2 I see this error message all the time I try to log in via the admin panel. The frontend pages are working fine. Fatal error: Uncaught TypeError: strtotime() expects ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
549 views

Magento 2: LastRealOrderId is missing in checkoutSession

I am facing this weird issue on the checkout page. We are using 3rd party payment module, which redirects customer to the payment page after placing order in Magento. In the controller, it tries to ...
Gaurav Agrawal's user avatar
0 votes
1 answer
78 views

your session has expired 2.3

Hello I am trying to install magento 2.3.5 p1 on my mac with mamp pro. My base url looks as follows http://magmono:8888/ After I add a product to a card I get an error that session has expired. The ...
Bogdan Onyshenko's user avatar
1 vote
1 answer
832 views

Custom session not consistent

I have a simple custom session storage where I want to save how many pages user has visited. I make an Ajax request to controller action on every page load which updates the custom foo session. ...
s21x's user avatar
  • 96
10 votes
5 answers
14k views

Can we increase the system/security/session size at admin On Magento 2

I need to know, Is there any side issues, if we increase the below path size more than max in config file. system/security/max_session_size generally as per magento max size is 256000 Can we ...
Learing_Coder's user avatar
0 votes
1 answer
66 views

Magento User Session

It's displaying the maintenance image. And it works fine in incognito or clear browser cache. But how to say to all customers refresh their browser cache? Cookie Lifetime is set 3600. Is there any ...
Aaron Wang's user avatar
0 votes
1 answer
201 views

Session parameter set in backend observer not persisting after upgrade to 2.4.3

We have a backend observer that sets a session variable after a shipment is created (sales_order_shipment_save_commit_after). It's been working for over 2 years, but after the latest upgrade to 2.4.3-...
Geat's user avatar
  • 864
0 votes
1 answer
123 views

Adding an XML array in the user session

I'm getting some data from an API. I want to save those data in my user session so that the API isn't called each time the page is reached. First time: load API, save in session After, load session ...
Morgan's user avatar
  • 945
0 votes
1 answer
968 views

How to set data into session with ajax magento 2

How to set data into the session with ajax Magento 2, I want to store price into the session with ajax for when the site is refreshed price gets from the session, not from the database.
NoOn's user avatar
  • 65
0 votes
0 answers
876 views

Magento 2 PHPSESSID Cookie Value is the same to different devices / browsers

I am running Magento 2.4.3 with Nginx, PHP-FPM, Varnish and Redis for session and caching storage. When I have already added a product to cart and then I add another product, visiting the site through ...
Nikos Klavdianos's user avatar
0 votes
0 answers
53 views

Overwriting Session Config To Add In 1 Week Of Keep Me Logged in Cookies Features

I am using Magento2.3.5-p2 installed on Ubuntu 20.04 I am required to implement a function in which at the login page when the user ticks on Remember Me checkbox, the system will store the cookies for ...
Mohd Farhan Bin Ramli's user avatar
0 votes
0 answers
220 views

Magento 2 | i see a different customer name when i login

When I try to log in from the homepage of my site I see a name different from mine. For example, instead of seeing the name John Doe I see the name Jackson appear which is not my name. This problem is ...
Jackom's user avatar
  • 503
0 votes
1 answer
193 views

Customer session model is not returning customer ID in class which was triggered by `customer_account_create` event

When using the customer_account_create event, the session model in my class is not able to return the customer ID using $this->customerSession->getId();. However, for testing purposes, when ...
Greg's user avatar
  • 2,749
0 votes
1 answer
529 views

customer user name displayed on header bar when user logged out by session time automatically

I am building the magento 2.4 website By the way I am facing with below customer login issue "I had logged into the website with customer account I spent some times and I visited the site by the ...
Thomas Peters's user avatar
0 votes
1 answer
2k views

PHPSESSID set SameSite=NONE

PHPSESSID cookie is set to default sameSite= lax, how to change it to sameSite=none?
Naftali Naftalayev's user avatar
2 votes
2 answers
1k views

Magento 2 - Page Builder Media Gallery not loading - "You entered an invalid Secret Key. Please refresh the page."

If I add a media node to the page builder and try to select an image from the gallery, then nothing happens. Normally the gallery should load. I get this in the network console https://company.de/...
Black's user avatar
  • 3,431
1 vote
0 answers
394 views

Magento 2 Varnish caching add to cart session from another user

When adding an item to cart, it will also show a second item, which I have previously added to cart from a different device. If I bypass varnish cache, cart seems to work ok. Guess I am missing a ...
Nikos Klavdianos's user avatar
0 votes
1 answer
875 views

Magento 2 - Can't log in to backend after changing cookie domain

My magento project is running on a subdomain redesign.company.de. I have changed the cookie domain from empty to .redesign.company.de, because I often had issues where my site was loading forever and ...
Black's user avatar
  • 3,431
-1 votes
3 answers
300 views

How to solve exceptions that are occured while going to accoutnt page in magento 2?

1 exception(s): Exception #0 (Exception): Notice: Undefined variable: objectManagerInterface in /var/www/html/htg/htg/app/code/Webkul/MpBlog/Block/Account/Navigation.php on line 139 Exception #0 (...
Sonali Ghule's user avatar
0 votes
1 answer
597 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....
Muhammad Ali's user avatar
0 votes
1 answer
106 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?...
Paul Fan's user avatar
  • 658
0 votes
1 answer
38 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?
Black's user avatar
  • 3,431
2 votes
3 answers
1k 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 ...
JerGrun's user avatar
  • 343
1 vote
2 answers
190 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 ...
MagentoAaron's user avatar
2 votes
0 answers
172 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 ...
quezasx's user avatar
  • 21
0 votes
0 answers
381 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 ...
Rahul pandey's user avatar
0 votes
1 answer
288 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("...
Haerriz's user avatar
  • 681
1 vote
3 answers
3k 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\...
Tanmay's user avatar
  • 794
0 votes
1 answer
175 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' ); ...
aich.khalid's user avatar
0 votes
2 answers
639 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 ...
Abilash Erikson's user avatar
0 votes
1 answer
394 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
Arjun's user avatar
  • 3,606
2 votes
1 answer
1k 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/...
Carlos's user avatar
  • 111
1 vote
1 answer
758 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 ...
Arsalan Ul Haq's user avatar
0 votes
1 answer
79 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 ...
Kazuki's user avatar
  • 109
0 votes
1 answer
20 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 ...
ann karsksya's user avatar
0 votes
0 answers
25 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 ...
Agathoklis's user avatar
1 vote
0 answers
40 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?
Rafael Corrêa Gomes's user avatar
0 votes
2 answers
3k 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-&...
gh darvishani's user avatar
0 votes
2 answers
6k 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.
user83013's user avatar
2 votes
0 answers
138 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. ...
Nagaraju Kasa's user avatar

1
2 3 4 5