HTPasswd Not Recognizin Session Cookie??

Discussion in 'Setting-up protection' started by paulcerbone, Feb 26, 2007.

  1. paulcerbone

    paulcerbone New Member

    Joined:
    Oct 23, 2006
    Messages:
    7
    I just read the A-Z sticky concerning .htpasswd but did not notice any difference from you suggestions and what I have.

    I have some protected folders with .mp3 files in them. I only have one pay suscription whose product_id is 1. If you are a suscriber to a site you can use my music player. I have a flash music player that dynamically loads .mp3s from the protected folder. But everytime it tries to load the mp3 file it pops up the gray login box.
    code is as follows

    index.php (this page launches the mp3 player page via javascript)
    PHP:
    <?php
    ob_start
    ();
    session_start();print_r($_SESSION); 
    $_product_id = array(1); // or $_product_id = array(1) if it so
    include("/amember/plugins/protect/php_include/check.inc.php");

    player.php (mp3 player page)
    PHP:
    <?php
    ob_start
    ();
    session_start();print_r($_SESSION); 
    $_product_id = array(1); // or $_product_id = array(1) if it so
    include("/amember/plugins/protect/php_include/check.inc.php");
    print_r($_SESSION) shows that I am a suscribed to product 1.

    You link to your page on CGI-Central.com in the other post is dead.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Cookies are not passed from aMember to the player.php so it happens. There is a solution to pass PHP session ID to player.php via URL parameters. Please contact us via helpdesk and we will try to help.

Share This Page