Changing 3 lines of code to php from c# -


Can someone give me some information about the following code on PHP because the code below is in C #

  var response = html console Present. response; Response.Clear (); Response.AppendCookie ("File download download token", downloadTokenValue); response.AddHeader ("content-displacement", string.format ("attachment; file name = {0}", desired filename)); flush ( );   

Thank you in advance

You get it like this

  & lt ;? php $ downloadTokenValue = 'youre value'; $ desired filename = 'desired file name value'; setcookie ("filedownloadtoken", $ downloadTokenValue, time () + 3600); Header ("Content if you want to read that cookie You can  echo $ _COOKIE ["fileDownloadToken"]    ;   

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -