SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/cookie.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. /**
  18.  * @package Core
  19.  *
  20.  * Domain, to restrict the cookie to a specific website domain. For security,
  21.  * you are encouraged to set this option. An empty setting allows the cookie
  22.  * to be read by any website domain.
  23.  */
  24. $config['domain'] = '';
  25.  
  26. /**
  27.  * Restrict cookies to a specific path, typically the installation directory.
  28.  */
  29. $config['path'] = '/';
  30.  
  31. /**
  32.  * Lifetime of the cookie. A setting of 0 makes the cookie active until the
  33.  * users browser is closed or the cookie is deleted.
  34.  */
  35. $config['expire'] = 0;
  36.  
  37. /**
  38.  * Enable this option to only allow the cookie to be read when using the a
  39.  * secure protocol.
  40.  */
  41. $config['secure'] = FALSE;
  42.  
  43. /**
  44.  * Enable this option to disable the cookie from being accessed when using a
  45.  * secure protocol. This option is only available in PHP 5.2 and above.
  46.  */
  47. $config['httponly'] = FALSE;