Magento Clears Session Data After Redirect Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Cart dropping all items / cart session clearsCheckout session clears after first step on Onepageunable to get customer data from session in custom module?Session is changed after redirectMagento set extra data to customer sessionTrying to login customer after registration, Customer logged in but page refresh destroy sessionSession in filesMagento 2 customer session setAfterAuthUrl() failed to set redirect URLmagento 2 sessionAfter logout, customer name still shows in headerMagneto 2 Session getting reset after placing order

Why these surprising proportionalities of integrals involving odd zeta values?

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

How to charge percentage of transaction cost?

Are there any AGPL-style licences that require source code modifications to be public?

Etymology of 見舞い

Why not use the yoke to control yaw, as well as pitch and roll?

Can gravitational waves pass through a black hole?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

Weaponising the Grasp-at-a-Distance spell

What is the ongoing value of the Kanban board to the developers as opposed to management

/bin/ls sorts differently than just ls

What could prevent concentrated local exploration?

Why does BitLocker not use RSA?

Unix AIX passing variable and arguments to expect and spawn

A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?

How do I deal with an erroneously large refund?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

Who can become a wight?

Why is one lightbulb in a string illuminated?

Is it OK if I do not take the receipt in Germany?

Protagonist's race is hidden - should I reveal it?

Is the Mordenkainen's Sword spell underpowered?

Is "ein Herz wie das meine" an antiquated or colloquial use of the possesive pronoun?

Kepler's 3rd law: ratios don't fit data



Magento Clears Session Data After Redirect



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Cart dropping all items / cart session clearsCheckout session clears after first step on Onepageunable to get customer data from session in custom module?Session is changed after redirectMagento set extra data to customer sessionTrying to login customer after registration, Customer logged in but page refresh destroy sessionSession in filesMagento 2 customer session setAfterAuthUrl() failed to set redirect URLmagento 2 sessionAfter logout, customer name still shows in headerMagneto 2 Session getting reset after placing order



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session?



I tried adding session_write_close(); but this doesn't help.



Update:



Some actions do not retrieve Magento::getSingleton('core/session') whole data.










share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • This then means your customer gets logged out after the redirect, which would be poor user experience. Rather than doing a workaround, saving the session data, it would be best to figure out why the session is clearing. Is there, by any chance, a 404 happening in the redirect (not the redirect itself, but some resource (be it image/css/js) on the redirected location? See this post: magento.stackexchange.com/questions/385/… - it may contain some helpful information

    – ProxiBlue
    Apr 25 '15 at 23:44

















2















For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session?



I tried adding session_write_close(); but this doesn't help.



Update:



Some actions do not retrieve Magento::getSingleton('core/session') whole data.










share|improve this question
















bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • This then means your customer gets logged out after the redirect, which would be poor user experience. Rather than doing a workaround, saving the session data, it would be best to figure out why the session is clearing. Is there, by any chance, a 404 happening in the redirect (not the redirect itself, but some resource (be it image/css/js) on the redirected location? See this post: magento.stackexchange.com/questions/385/… - it may contain some helpful information

    – ProxiBlue
    Apr 25 '15 at 23:44













2












2








2


1






For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session?



I tried adding session_write_close(); but this doesn't help.



Update:



Some actions do not retrieve Magento::getSingleton('core/session') whole data.










share|improve this question
















For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session?



I tried adding session_write_close(); but this doesn't help.



Update:



Some actions do not retrieve Magento::getSingleton('core/session') whole data.







magento-1 customer-account session register customer-session






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 4 '16 at 12:33









Siarhey Uchukhlebau

10.1k93058




10.1k93058










asked Feb 3 '15 at 3:10









user1240207user1240207

77921031




77921031





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • This then means your customer gets logged out after the redirect, which would be poor user experience. Rather than doing a workaround, saving the session data, it would be best to figure out why the session is clearing. Is there, by any chance, a 404 happening in the redirect (not the redirect itself, but some resource (be it image/css/js) on the redirected location? See this post: magento.stackexchange.com/questions/385/… - it may contain some helpful information

    – ProxiBlue
    Apr 25 '15 at 23:44

















  • This then means your customer gets logged out after the redirect, which would be poor user experience. Rather than doing a workaround, saving the session data, it would be best to figure out why the session is clearing. Is there, by any chance, a 404 happening in the redirect (not the redirect itself, but some resource (be it image/css/js) on the redirected location? See this post: magento.stackexchange.com/questions/385/… - it may contain some helpful information

    – ProxiBlue
    Apr 25 '15 at 23:44
















This then means your customer gets logged out after the redirect, which would be poor user experience. Rather than doing a workaround, saving the session data, it would be best to figure out why the session is clearing. Is there, by any chance, a 404 happening in the redirect (not the redirect itself, but some resource (be it image/css/js) on the redirected location? See this post: magento.stackexchange.com/questions/385/… - it may contain some helpful information

– ProxiBlue
Apr 25 '15 at 23:44





This then means your customer gets logged out after the redirect, which would be poor user experience. Rather than doing a workaround, saving the session data, it would be best to figure out why the session is clearing. Is there, by any chance, a 404 happening in the redirect (not the redirect itself, but some resource (be it image/css/js) on the redirected location? See this post: magento.stackexchange.com/questions/385/… - it may contain some helpful information

– ProxiBlue
Apr 25 '15 at 23:44










1 Answer
1






active

oldest

votes


















0














If session not totaly clears, you can try this:



$session = Mage::getSingleton("core/session", array("name"=>"frontend")); //load session variables
$session->setData("data", $data); //save your data in custom session variable


And then, when you need this data:



$data = $session->getData("data"); //get data from custom variable





share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f54237%2fmagento-clears-session-data-after-redirect%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If session not totaly clears, you can try this:



    $session = Mage::getSingleton("core/session", array("name"=>"frontend")); //load session variables
    $session->setData("data", $data); //save your data in custom session variable


    And then, when you need this data:



    $data = $session->getData("data"); //get data from custom variable





    share|improve this answer





























      0














      If session not totaly clears, you can try this:



      $session = Mage::getSingleton("core/session", array("name"=>"frontend")); //load session variables
      $session->setData("data", $data); //save your data in custom session variable


      And then, when you need this data:



      $data = $session->getData("data"); //get data from custom variable





      share|improve this answer



























        0












        0








        0







        If session not totaly clears, you can try this:



        $session = Mage::getSingleton("core/session", array("name"=>"frontend")); //load session variables
        $session->setData("data", $data); //save your data in custom session variable


        And then, when you need this data:



        $data = $session->getData("data"); //get data from custom variable





        share|improve this answer















        If session not totaly clears, you can try this:



        $session = Mage::getSingleton("core/session", array("name"=>"frontend")); //load session variables
        $session->setData("data", $data); //save your data in custom session variable


        And then, when you need this data:



        $data = $session->getData("data"); //get data from custom variable






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 30 '15 at 6:39









        Fabian Schmengler

        55.4k21139354




        55.4k21139354










        answered Feb 3 '15 at 8:59









        Eugene LitvinEugene Litvin

        154




        154



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f54237%2fmagento-clears-session-data-after-redirect%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form