You are here: Home
Support site for Tips and Tricks HQ premium products
Actually found that the above method was clearing out the session for some reason.
Instead find line 68 and replace with:
else
{
// Offer the product as a download
$path_parts = pathinfo($file_path);
$file_name = $path_parts;
if (isset($_SESSION[“wordpress.AUTH.eMember”])){
//custom_read3($file_path,$file_name);
if (ini_get(‘allow_url_fopen’) == ‘1’)
{
download_using_fopen($file_path,$file_name);
}
else
{
download_using_curl($file_path,$file_name);
}
}
}