We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [core-session]

Denotes questions regarding Magento Core Session

Filter by
Sorted by
Tagged with
0
votes
2answers
93 views

Magento 2 + Newrelic (slowest components)

I am using Magento 2.2.2 EE and getting slowest component from newrelic. env.php 'session' => array ( 'save' => 'files', 'save_path' => '/var/lib/php7.0/session', ), php.ini ...
0
votes
0answers
17 views

Magento 2 I cant able to get the session in Helper function

<?php namespace Sdi\Orders\Helper; use Sdi\Orders\Model\StubFactory; use \Magento\Framework\Module\Dir\Reader; use Magento\Framework\View\Asset\Repository; use Sdi\Orders\Model\EngravingFactory; ...
1
vote
1answer
33 views

Magento2.2.5 : How to maintain a session value in product detail page to custom controller page?

I implemented some custom options in the product pdp page. i.e, i have to engrave the product in frontend(eg.pendant FRONT SIDE) as well as the backend(eg.pendant BACK SIDE) without refreshing the ...
1
vote
2answers
343 views

Magento2.2.6 Admin Session Timeout Not Working

Something is wrong with the admin session timeout in Magento2.2.6. I have everything set to 1 day however it's all ignored. I get logged out if I'm inactive for 15 minutes. I have vendor/magento/...
1
vote
0answers
36 views

How to pass SID to url?

I see here many questions how to remove SID. It seems this is not very rare. How that even happen? Even if php ini settings for session.use_trans_sid is true and Magento setting Use SID on Frontend ...
2
votes
1answer
105 views

Magento Admin Session Issue after install SUPEE-10570

We use Magento 1.7 and recently installed patch SUPEE-10570v2. After that when we use admin, some time it's session out and redirect to the front-end home page(not admin login page). Please let me ...
3
votes
1answer
330 views

Magento session low time to start

I'm having problems with slowness on pages that involve checkout. For some reason, it seems to me that when we wrap up the checkout session, it takes a very long time for things to "happen". Even if ...
0
votes
1answer
362 views

What would be Mage::getSingleton('adminhtml/session_quote') in magento 2?

In magento 1 my code is, Mage::getSingleton('adminhtml/session_quote'); How can I change this piece of code in magento 2? I know I would need to do something like this: However, what would be ('...
0
votes
0answers
310 views

Set form value to Magento Session

I am using Magento 1.9.3.6 version. I need form values in the controller which is other than form action. So I serialized the form values and set into the Magento Core session like below. When I ...
1
vote
1answer
3k 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/...
1
vote
1answer
77 views

I want to copy magento session data from database to files

I want transfer magento session storage from database to files. I want to know how to do this. What i did is, download [BLOB - 3.6 KiB] file from database core_session table for session and rename ...
2
votes
2answers
723 views

Customer can not login created by admin

I have installed fresh installtion of magento 1.9.2.2 I have created group in customer group. If I add any customer to that group using admin panel, and tries to login from frontend in different ...
0
votes
3answers
39 views

Event in Vagrant works but not in production

I can't think of the reason why this is happening. I have a custom module in a vagrant box, which works perfectly. When I migrate my code/database to an actual server, the magento event does not ...
0
votes
1answer
40 views

Magento create session when browser is closed

How to create session in magento which will be destroyed when browser gets closed and gets created again
0
votes
1answer
574 views

log_url_info logs the visitor's first url, regardless of page visited

The log_url_info table should ideally log every url visited. It seems to work by logging the "request_uri" in the session data for the user. "request_uri" in the session data is not updated, even ...
1
vote
0answers
394 views

Magento 2: How to set visitor_data and currency_code session value?

In magento 2, For check all current session in magento 2, when we print print_r($_SESSION) then some list of session are display inside browser. Resultant session look like below, Array ( [...
2
votes
1answer
362 views

How to maintain custom session for custom login and registration account module in magento 1.9.2 community edition

I am devoloping a module in which I am creating separate account which not using anything of customer. I am not able to create a separate session for my module . I tried to study customer module's ...
0
votes
2answers
572 views

Session data lost in custom magento module

I have a custom module with two controllers. In the first controller (SetupController), if I were to set some session data like this: Mage::getSingleton('core/session') ->setData('...
0
votes
1answer
1k views

Get session variables between template files

I have set the array in magento session in one of the template file using following code Mage::getSingleton('core/session')->setData('filterarray',$filtercatarray); I'm getting correct value in ...
33
votes
3answers
44k views

How to Set, Retrieve and Unset Session Variables in Magento 2?

What is the equivalent for session in Magento 1 Mage::getSingleton('core/session')->setMyValue('test'); Mage::getSingleton('core/session')->unsMyValue(); Same in Magento 2?
0
votes
2answers
133 views

Pass data from view to block

I'm trying to pass a message from view to layout by using a model. This does not work when using _redirect(); I know there is a magento core functionality, but I'd like to understand why my custom ...
0
votes
1answer
2k views

How to append array value in magento session?

Just I want to append array value in magento session data Mage::getSingleton( 'core/session' )->setData( 'createArrayDefault', array(3)); Mage::getSingleton( 'core/session' )->setData( '...
0
votes
1answer
814 views

Cannot get session value in another controller

I am trying to get the session value in another controller but don't get value from the session: class Vaibhav_User_IndexController extends Mage_Core_Controller_Front_Action { public function ...
5
votes
2answers
484 views

How to access 'customer/session' with redis_session in custom module?

I am using the redis_session for storing the back end cache and session with different db id's. Now, the below code returns empty when using it in the custom module. Mage::getSingleton('core/session'...
0
votes
2answers
789 views

Save collection in session

In my catalog/product_list block template (catalog/product/list.phtml), I've this piece of code that should work, but $_productCollection is always false: <?php $session = Mage::getSingleton('core/...
1
vote
1answer
304 views

Read blob field in core/session table

EDIT Sorry, I have formulated my question extremely badly: I need to retrieve this field(no problem) and read the value with php(problem, I haven't ever met this type of input and I don't know howto ...
2
votes
2answers
4k views

Session variable is not persisting to next request

Every frontend page load, I need to check for a certain url parameter, and if it is found I set a session variable to true so that I know at one point during this session the customer had this ...
2
votes
0answers
625 views

Duplicate Key error in core_session

I'm getting tons of these running Magento ver. 1.8.1.0, has anybody ever seen this? TL;DR It's trying to enter a session key in core_session where one already exists. We're running a standard, ...
-2
votes
1answer
1k views

Alternative for Mage::getSingleton('core/session')->addSuccess() [closed]

Due to some reason we disabled the core session on certain modules. In some files we have the following code Mage::getSingleton('core/session')->addSuccess() which is not working. can any one ...
1
vote
0answers
171 views

Magento Session Size Issue - MongoDB [closed]

We are using Magento 1.5.1.0 version for the main website. There are around 1000 orders placed in the website and 1500 avg visitors on site. We are using mongodb to store the sessions the mongodb ...
5
votes
2answers
1k views

Why core session is empty?

I have a custom module, which basically adds social media login in magento. However I am facing an issue with core/session which I dont know how to resolve. I am adding my custom blocks in customer ...
0
votes
1answer
7k views

Setting a dynamic value for a session variable

Can any one help me why am not able to set a magento session variable with the following code. Mage::getSingleton('core/session')->setGiftMessage("<script type='text/javascript'>jQuery('#...