lithium\storage\session\adapter\Cookie::key PHP Method

key() public method

Obtain the top-level cookie key.
public key ( ) : string
return string The configured cookie 'name' parameter
    public function key()
    {
        return $this->_config['name'];
    }

Usage Example

Esempio n. 1
0
 public function testDefaultCookieName()
 {
     $cookie = new Cookie();
     $expected = Inflector::slug(basename(Libraries::get(true, 'path'))) . 'cookie';
     $this->assertEqual($expected, $cookie->key());
 }
All Usage Examples Of lithium\storage\session\adapter\Cookie::key