Questions tagged [sessions]

The tag has no usage guidance.

0
votes
1answer
138 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/...
0
votes
1answer
163 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 ...
0
votes
2answers
40 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 ...
0
votes
1answer
84 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 ...
1
vote
1answer
2k 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/...
2
votes
2answers
736 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::...
0
votes
1answer
727 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 ...
1
vote
1answer
1k 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 ...
1
vote
2answers
3k 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 ...
1
vote
1answer
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 ...
1
vote
0answers
98 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. ...
2
votes
0answers
652 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 ...
0
votes
1answer
709 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::...
1
vote
0answers
337 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 ...
1
vote
1answer
90 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.
6
votes
1answer
382 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
1
vote
1answer
482 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()-&...
3
votes
1answer
292 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'...
1
vote
1answer
71 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 ...
3
votes
0answers
425 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: ...
1
vote
1answer
183 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 ...
1
vote
1answer
37 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 ...
1
vote
1answer
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/...
1
vote
2answers
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 ...
0
votes
1answer
225 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 ...
1
vote
2answers
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 ...