PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Session variables do not work as expected???

  1. Deepend
    Member

    Hi,

    I am simply trying to:
    1) set a php _SESSION variable in a function attached to the "gform_after_submission" hook
    2) retrieve that variable in the "gform_confirmation" hook.

    The session variable is never current when called upon in the confirmation hook... it's always one value older than it should be...

    I have tested that _SESSION variable is working fine if i use it in other areas of functions.php

    What is different about gravity forms that it doesn't work, and how do i access this variable!?

    Posted 12 years ago on Wednesday November 7, 2012 | Permalink
  2. Deepend
    Member

    I figured out this is because confirmation hook fires before the after_submission hook...

    which seems highly illogical... i need to get data created during after_submission and display it in a confirmation page....

    any ideas?

    Posted 12 years ago on Thursday November 8, 2012 | Permalink
  3. Deepend
    Member

    In case anyone is wondering I moved the whole lot into the confirmation hook. This seems to be working now... Thanks for the lack of support.

    Posted 12 years ago on Thursday November 8, 2012 | Permalink

This topic has been resolved and has been closed to new replies.