We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2315
    • 8 Posts
    In first, i try this, but it dont work.
    the session are not valide on all page. When the visior go click on link the $_SERVER["HTTP_REFERER"] are now the adresse of my site



    <?php
    session_start();
    if(!isset($_SESSION[’fx’])){
            
              if (eregi("http://.+xyz.com.+", $_SERVER["HTTP_REFERER"]))
                       {
                            echo "my action";
                            $_SESSION[’fx’] = 1 ;
                       }
               else
                        {
                            $_SESSION[’fx’] = 2 ;
                        }
    }
    
    echo  $_SESSION[’fx’];
    ?>
    


    The cookies can do this?
    What do you think about that ?

    Thanks (sorry for my english)