[Solved] Changing 3 lines of code to php from c# [closed]

[ad_1]

You can achieve this that way ,

<?php

    $downloadTokenValue="Youre Value";
    $desiredFileNames="Desired File Name Value";

    setcookie("fileDownloadToken", $downloadTokenValue, time()+3600);
    header("content-disposition: attachment;filename=$desiredFileNames"); 
    ?>

If you want to read that Cookie you can echo $_COOKIE["fileDownloadToken"];

0

[ad_2]

solved Changing 3 lines of code to php from c# [closed]