• seotoco

    (@seotoco)


    Hi,
    We have tried to run the plugin using php sessions in our website.
    We figured that the code itself tested and worked successfuly only when we used PHP 7.0.

    Is it possible to use sessions with PHP 7.4 or 8.0 without downgrading the php version?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hey @seotoco,

    Sorry to hear you’re having difficulties.

    Is it possible to use sessions with PHP 7.4 or 8.0 without downgrading the php version?

    WP Native PHP Sessions works on PHP 7.4 in my testing. Maybe there’s something else about your server configuration that’s different and causing issues?

    Is this site on Pantheon or hosted elsewhere?

    Thread Starter seotoco

    (@seotoco)

    Hi Daniel,
    We develeoped piece of code using sessions function.
    The code worked perfectly in the sandbox
    We usedInsert PHP Code Snippet plugin to implement it with wordpress and its not working. Do we need to do any additional settings to make it work?

    How can you help us solve the problem?
    Thanks.

    • This reply was modified 3 years ago by seotoco.
    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hey @seotoco,

    It’s hard to say what the issue might be without being able to debug the code, which is outside what we support.

    If you track down a specific reproducible issue with WP Native PHP Sessions, we’d be happy to take a look at getting it fixed.

    Thread Starter seotoco

    (@seotoco)

    We moved $p1 from one page to another page.

    session_start();
    
         // Moves P1 to the end
       $p1 = $_SESSION['P11'];
        $_SESSION['P11'] = $p1;
          // Moves P1 to the end

    Can you give me a minimal piece of code that must work that we can try it out?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to use sessions in 7.4/8.0 PHP versions and wordpress’ is closed to new replies.