• Resolved bertini

    (@bertini)


    It’s not working… I’m using the following code in a template:

    session_start();
    $_SESSION['id']=$id;
    
    echo '<img class="fanimage" src="/img.php?show='.$clean3.'"/>';

    and then the img.php file:

    session_start();
    $id=$_SESSION['id'];
    readfile($id);

    And the session variable doesn’t get transfered for some reason.

    Any help?

    Thank you!

    EDIT: of course this method i’m using works all around my website. It just doesn’t when using the pdf creator.

    https://wordpress.org/plugins/gravity-forms-pdf-extended/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Adding SESSION variables to template.’ is closed to new replies.