Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 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 ...
0
votes
0answers
13 views

Magento 1.9 core seesion message vanishing on home page

I'm setting a message to the core session from the controller and redirecting to the home page Ex - $session = Mage::getSingleton('core/session'); $session->addError('This is test message'); $this-&...
0
votes
1answer
23 views

Session in magento 2.4.3 not working on local machine

I have a really big problem with my magento installation, everything was working fine til today - now session in frontend and in backend is not working at all - i can't add product to cart or do ...
0
votes
1answer
16 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-...
0
votes
1answer
12 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 ...
0
votes
1answer
85 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.
0
votes
0answers
56 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 ...
0
votes
0answers
100 views

Magento 2.4.1 - Shopping cart empty after checkout login

I have a strange issue that is currently under intensive discussion probably in different places and topics, related to different versions of Magento. So, I have a Magento 2.4.1 instance and the ...
0
votes
0answers
19 views

Session expired after checkout process and system can not redirect to thank you page

after input OPT for checkout product. it's a redirect to this page and the session expired
0
votes
0answers
9 views

How to destroy same customer's session from every browser with one event with vue storefront + magento2?

We are using VSF + MAGENTO2. I want to destroy customer session after updating customer password. How to clear customer session from everybrowser? Clearing local storage only clear current browser ...
0
votes
0answers
31 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
67 views

How to stop redirecting to checkout page after login from any page in Magento 2.3

Initially, the Customer is redirecting on the same page from where the customer login. For example, if a customer login from the homepage then is redirected to the homepage. if the customer login from ...
0
votes
0answers
19 views

Magento custom session getting destroyed after user is redirected to other site

I am doing a Stripe integration on Magento site where customer can directly pay from My Account section. For success page, I am having is the success URL which stripe redirects customer too. I want ...
0
votes
1answer
23 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 ...
0
votes
1answer
65 views

How can I set cookie when other website redirect to magento website

Magento 2 website is mydoamin.com. (Refer a friend) External Website link redirect to my website. This will provide a reward based on refer a friend anyone buy product in Magento website. After ...
0
votes
1answer
99 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 ...
0
votes
1answer
551 views

PHPSESSID set SameSite=NONE

PHPSESSID cookie is set to default sameSite= lax, how to change it to sameSite=none?
2
votes
2answers
582 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/...
0
votes
0answers
45 views

Session destroyed in N genius payment gateway magento 2.3

I have created a N Genius hosted session payment gateway module for my project in magento 2.3 version. I have used an iframe to show the 3d secure form in this module. After the 3d secure submit i am ...
1
vote
0answers
132 views

main.ERROR: Notice: Trying to access array offset on value of type int

Losing access to our admin panel and exception log is showing: main.CRITICAL: Notice: Trying to access array offset on value of type int in /home/andy/public_html/vendor/magento/framework/Session/...
1
vote
0answers
122 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 ...
0
votes
0answers
11 views

CustomerSession -How is the getNoReferer() method assigned value?

Class \Magento\Customer\Model\Url - Line 122 I can't find the place that system sets value for getNoReferer() method. Please show me how the system sets its value. Thanks.
0
votes
1answer
58 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 ...
-1
votes
3answers
53 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 (...
0
votes
0answers
28 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
96 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
119 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
55 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
29 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
31 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
17 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
14 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
270 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
40 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
14 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
166 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 ...
1
vote
2answers
77 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
28 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
156 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
105 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("...
1
vote
3answers
110 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
1answer
23 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' ); ...
1
vote
1answer
1k 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
198 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
44 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 ...
3
votes
0answers
181 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
1answer
142 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
2
votes
1answer
972 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/...
1
vote
1answer
72 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....

1
2 3 4 5
13