Questions tagged [core-session]
Denotes questions regarding Magento Core Session
33 questions
0
votes
1
answer
66
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 ...
1
vote
2
answers
2k
views
Magento 2 core session variable unable to fetch first time when user comes from 3rd party website
We have to fetch and set a session variable when the user redirects to our magento2 website using session-id from 3rd party site.
It looks like http://magento2.com/?SID=322e00bfqm3g6rfpjumah3939n
...
0
votes
2
answers
459
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
...
1
vote
1
answer
430
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
3
answers
2k
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
0
answers
85
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
1
answer
107
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 ...
4
votes
1
answer
1k
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
1
answer
696
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
0
answers
583
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
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/...
1
vote
1
answer
137
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 ...
3
votes
2
answers
979
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
3
answers
42
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
1
answer
43
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
1
answer
941
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
0
answers
562
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
1
answer
520
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
2
answers
689
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
1
answer
2k
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 ...
42
votes
3
answers
80k
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
2
answers
158
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
1
answer
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
1
answer
891
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
2
answers
762
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
2
answers
1k
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
1
answer
465
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
2
answers
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 ...
3
votes
0
answers
710
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
1
answer
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
0
answers
187
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
2
answers
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
1
answer
8k
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('#...