Questions tagged [session]

Denotes questions about session management in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 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
27 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
140 views

PHPSESSID set SameSite=NONE

PHPSESSID cookie is set to default sameSite= lax, how to change it to sameSite=none?
2
votes
2answers
275 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
18 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
73 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
62 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
9 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
30 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
39 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
16 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
22 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
74 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
34 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
18 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
16 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
15 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
13 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
105 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
25 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
7 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
69 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
8 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
61 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
20 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
84 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
56 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
14 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
33 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
40 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
136 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
22 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
689 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
98 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
32 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
145 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
148 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
122 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
87 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
12 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
33 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
770 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
47 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
199 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
22 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
40 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
1answer
257 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
91 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
1answer
20 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 ...

1
2 3 4 5
13