Changeset 489


Ignore:
Timestamp:
Aug 31, 2014 10:12:04 AM (10 years ago)
Author:
anonymous
Message:

Better defaults for setCookie()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r487 r489  
    12701270    * @param    string  $value      The value of the cookie.
    12711271    * @param    string  $expire     The time the cookie expires, as a unix timestamp or string value passed to strtotime.
    1272     * @param    string  $path       The path on the server in which the cookie will be available on
    1273     * @param    string  $domain     The domain that the cookie is available to
     1272    * @param    string  $path       The path on the server in which the cookie will be available on.
     1273    * @param    string  $domain     The domain that the cookie is available to.
    12741274    * @param    bool    $secure     Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client.
    12751275    * @param    bool    $httponly   When TRUE the cookie will be made accessible only through the HTTP protocol (makes cookies unreadable to javascript).
     
    12791279    * @since    02 May 2014 16:36:34
    12801280    */
    1281     public function setCookie($name, $value, $expire='+10 years', $path=null, $domain=null, $secure=null, $httponly=null)
     1281    public function setCookie($name, $value, $expire='+10 years', $path='/', $domain=null, $secure=null, $httponly=null)
    12821282    {
    12831283        if (!is_scalar($name)) {
Note: See TracChangeset for help on using the changeset viewer.