Cakephp

Cakephp

Please follow at the following code. APP -> config-> core.php /** * Session time out time (in seconds). * Actual value depends on ‘Security.level’ setting. */ Configure::write(‘Session.timeout’, ‘3600’); //3600 seconds Hope it will work.

Just follow bellow information – Edit yourInstallation/app/config/core.php Search for Security.salt and change some random characters (this is so your application  doesn’t have the same security seed as a billion other installations, which would be a serious security loophole. Do the same with Security.cipherSeed but use only numbers save core.php Hope it will work

CakePHP – Export data to a .html file header(‘Content-Type: text/html; charset=utf-8’); header(‘Content-Type: application/force-download’); header(‘Content-Type: application/octet-stream’); header(‘Content-Type: application/download’); header(  ‘Content-disposition: attachment; filename=”<your file name here>.html”‘);   Hope it will work, Have a nice day!.

CakePHP – Export data to a .docx file Very simple. Just copy below code and paste. header(“Expires: Mon, 26 Jul 2020 05:00:00 GMT”); header(“Last-Modified: ” . gmdate(“D, d M Y H:i:s”) . ” GMT”); header(“Cache-Control: no-store, no-cache, must-revalidate”); header(“Cache-Control: post-check=0, pre-check=0”, false); header(“Pragma: no-cache”); header(“Content-Type: application/msword; charset=ISO-8859-1”); header(“Content-Disposition: attachment; filename=\””.<your file name>.”.doc”); echo “<html><head><title> Cakephp 
Read More