Skip to main content

Questions tagged [sessions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
427 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
0 answers
48 views

Customer session is not working when i login for first time due to cacheable= true

I have created a ViewModel with below code: <?php namespace {ClassNameSpace}; class {ClassName} implements \Magento\Framework\View\Element\Block\ArgumentInterface { private $context; ...
JaduDev's user avatar
0 votes
1 answer
239 views

Login caching and sessions

So were using this third party catalog thing which I don't like much at all. I won't get into all the details of my disliking but for starters it runs in an iframe. Now if a customer is browsing ...
Head's user avatar
  • 177
0 votes
1 answer
4k views

magento2 problem with sessions

I have problem with session_start() AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Exception: Warning: session_start(): Failed to decode session object. Session has been destroyed in /var/...
Denis Maksiura's user avatar
1 vote
1 answer
3k views

Magento 2: sales_model_service_quote_submit_failure: Invalid state change requested

I cannot get my head around this, I cannot replicate it, it's driving me nuts. About 1% of orders encounter this error. It was even worse before, but now I've changed the default behaviour of ...
Robert Schmidt's user avatar
1 vote
2 answers
1k views

Loging on frontend failed with no errors

For a few hours I could not login on frontend. (on local domain https://www.magento2.loc, magento 2.2.5, developer mode). If I enter wrong username or password, yes, I receive error message. With ...
melaxon's user avatar
  • 340
0 votes
1 answer
395 views

Magento 2: How to manage simple user (customer) login session for different device?

Using Magento 2.2, I need to allow customer login only one device at a time. Ex. if the customer is already logged in the computer, but user tries to log in with a smartphone, the Magento will ...
Bong Channarith's user avatar
1 vote
1 answer
4k views

Magento 1.9.3.6 session validation exception issue [duplicate]

Over the last few days my exception log has become full of entries of the following: 2017-11-06T09:27:13+00:00 ERR (3): exception 'Mage_Core_Model_Session_Exception' in mag19/app/code/core/Mage/Core/...
Vaishal Patel's user avatar
2 votes
2 answers
2k views

\Magento\Backend\Model\Session Clear: Magento 2

In Magento, we could use as $this->_getSession()->clear(); However, in magento 2 if we use the same thing it throws exception as Invalid method Magento\Backend\Model\Session\Interceptor::...
manini's user avatar
  • 359
0 votes
2 answers
2k views

Magento 2 : Unable to save data in Sessions with Cache enabled

I am trying to save some temporary data into the customer session object ( \Magento\Customer\Model\Session ), which I need to retain until a quote is generated. I have tried two methods to save data ...
Simon.Hermit's user avatar
3 votes
2 answers
3k views

Why session custom data lost after refresh in Magento 2?

I need to save data in session on one page and retrieve same data on multiple pages. After saving the data when i refresh page Or redirect to another page data flush off . Can somebody explain me why ...
Om Prakash's user avatar
1 vote
3 answers
5k views

When to truncate the core_session table?

I have roughly 35,500 rows of session data in this table. Is that a lot? Would this cause problems? How much is generally too much? Should i truncate it? It seems to be a problem so I was thinking of ...
Head's user avatar
  • 177
1 vote
1 answer
2k views

Session Cookie Management - Cookie Lifetime

Has anyone ever set the lifetime to 3 days / 259200? I know the standard is 86400. Would this overload cache/sessions? I'm currently not using redis or and memcache/session management. I have a ...
Singleton's user avatar
1 vote
0 answers
161 views

Managing out of control robot sessions with Redis

I've been having major issues with robots leaving sessions files. Over 100 sessions / second. At some point Redis just stopped accepting the sessions and Magento went to writing them back to disk. ...
innerspace's user avatar
3 votes
0 answers
880 views

Magento sessions in AWS Dynamodb [closed]

in reference to this old post (Running Magento in an AWS Environment) by @Alan Storm, I see a lot of you mentioning using DynamoDB for magento sessions. I have searched high and low, but I cannot ...
Stefan MD's user avatar
0 votes
1 answer
1k views

How to get session value in frontend?

I have set a session value in admin by below code Mage::getModel('core/session')->setAutoWebsiteId(1); But when I get this session value in frontend by code below it returns nothing. Mage::...
piyush_systematix's user avatar
1 vote
0 answers
467 views

Customer session expired after user clicks back button

I am building a site in magento. User can able to login and login session was created successfully. Take this scenario. User added a product to cart (Already Login) Going to the checkout page There ...
arjun arjun's user avatar
1 vote
1 answer
135 views

How to keep products in basket for multiple month?

how can we keep the chosen products in the basket for multiple month? We are using Magento 1.9 with redis.
Matthias Jaekle's user avatar
6 votes
1 answer
485 views

Turn off Concurrent Sessions Allowed

Is it possible to turn off Concurrent Sessions? We had a pen test and it flagged concurrent sessions. Weak Session Management - Concurrent Sessions Allowed
brentwpeterson's user avatar
1 vote
1 answer
650 views

Session ID is not preserved, Magento starts a new session

I am trying to save a $_GET value in my custom session by using observer. So I have this method that fires on custom_front_init_before public function checkLocationId() { $location = Mage::app()-&...
Alan's user avatar
  • 947
3 votes
1 answer
649 views

Pass session and location between two sub-domains?

We have two main sites (www.website.com, and ca.website.com) We utilize GEOip to redirect to the appropriate site for US/Canada. We share the same catalog, back-end for both sites. However, it doesn'...
TheNorthern_Light's user avatar
1 vote
1 answer
82 views

Change product attribute for current session / quote

Sometimes you want to change a product attribute based on live data. For example: Say that there is a product that could come from one of two suppliers (A and B) and when a customer comes to the ...
pzirkind's user avatar
  • 2,906
3 votes
0 answers
452 views

Why this complex logic for cookie domain in session start?

I was debugging why an empty value in the cookie domain still resulted in a domain value being set in the session cookie and came across this weird code in Mage_Core_Model_Session_Abstract_Varien: ...
user avatar
1 vote
1 answer
293 views

admin session username when in cron

When you are working in the adminhtml backend of your module, this code returns the username of the currently logged in user: Mage::getSingleton('admin/session')->getUser()->getUsername() What ...
Latheesan's user avatar
  • 1,038
1 vote
1 answer
45 views

Creating a new entity that can log into Magento (authenticate with a password and create a session)

I want to add another party to the site, that can log in and do some stuff but I want it to be a separate entity (not a customer) because I don't want it to be able to make purchases and such. It ...
Vic's user avatar
  • 1,424
1 vote
1 answer
1k views

magento session and memcache issue

I used memcached for sessions, but when I click on the website, got error for session_start error is : PHP Fatal error: session_start(): Failed to initialize storage module: memcache (path: /var/...
sIiiS's user avatar
  • 632
1 vote
2 answers
3k views

memcache and sessions, don't work

I used memcache for sessions but can not login to both of frontend and backend in mg1810 before this, I did use redis for sessions and now want to use memcache instead of redis Also did FLUSHALL in ...
sIiiS's user avatar
  • 632
0 votes
1 answer
281 views

Session files CHmod

My Magento Store is hosted on a Directadmin enabled server, But all the Session files stored in /var/sessions/ are created with CHmod 600 and user Apache, The Session folder him self is Owned by the ...
Trickster's user avatar
1 vote
2 answers
2k views

Problem with users and sessions on Magento frontend

I have a problem that is driving me crazy , I'm completely lost. With my limited knowledge I think is a problem of sessions, but really have no idea how to approach it. This is the problem: Users ...
user4935's user avatar