php - "Invalid cookie path" with Zend\Session when setting cookie_path -


i'm trying set cookie path local domain:

$config = new \zend\session\config\standardconfig(); $config->setoptions(array(     'cookie_path' => '.jt.martyndev', )); $sessionmanager = new \zend\session\sessionmanager($config); \zend\session\container::setdefaultmanager($manager); return new \zend\session\container('jt_sso'); 

however, i'm getting following exception:

type: zend\session\exception\invalidargumentexception message: invalid cookie path file: /var/www/jt_sso/vendor/zendframework/zend-session/src/config/standardconfig.php line: 439 

why cookie domain not valid? it's fine. i've used in other apps.

i think confusing cookie_path , cookie_domain. cookie_path should set path below cookie should valid, e.g. / (the default) or /questions/. cookie_domain 1 set hostname.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -