{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/2045","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/2045/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/2045/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/2045/events","html_url":"https://github.com/magento/magento2/issues/2045","id":110218892,"number":2045,"title":"Warning: Expiry date cannot have a year greater than","user":{"login":"motorlesha","id":14055299,"avatar_url":"https://avatars.githubusercontent.com/u/14055299?v=3","gravatar_id":"","url":"https://api.github.com/users/motorlesha","html_url":"https://github.com/motorlesha","followers_url":"https://api.github.com/users/motorlesha/followers","following_url":"https://api.github.com/users/motorlesha/following{/other_user}","gists_url":"https://api.github.com/users/motorlesha/gists{/gist_id}","starred_url":"https://api.github.com/users/motorlesha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motorlesha/subscriptions","organizations_url":"https://api.github.com/users/motorlesha/orgs","repos_url":"https://api.github.com/users/motorlesha/repos","events_url":"https://api.github.com/users/motorlesha/events{/privacy}","received_events_url":"https://api.github.com/users/motorlesha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/bug","name":"bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T12:50:32Z","updated_at":"2016-02-22T13:24:10Z","closed_at":null,"body":"I tried to set session time more that 9999\r\n\r\nWarning: Expiry date cannot have a year greater than 9999 in /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php on line 124\r\n#0 [internal function]: Magento\\Framework\\App\\ErrorHandler->handler(2, 'Expiry date can...', '/var/www/source...', 124, Array)\r\n#1 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php(124): setcookie('admin', '8n1gt2hhajjtqu5...', 1001444221846, '/admin', 'magento2.motorn...', false, true)\r\n#2 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php(96): Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager->setCookie('admin', '8n1gt2hhajjtqu5...', Array)\r\n#3 /var/www/sources/motorny/magento2/app/code/Magento/Backend/Model/Auth/Session.php(192): Magento\\Framework\\Stdlib\\Cookie\\PhpCookieManager->setPublicCookie('admin', '8n1gt2hhajjtqu5...', Object(Magento\\Framework\\Stdlib\\Cookie\\PublicCookieMetadata))\r\n#4 /var/www/sources/motorny/magento2/app/code/Magento/Backend/App/Action/Plugin/Authentication.php(119): Magento\\Backend\\Model\\Auth\\Session->prolong()\r\n#5 [internal function]: Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch(Object(Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\r\n#6 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)\r\n#7 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\\Framework\\Interception\\Chain\\Chain->invokeNext('Magento\\\\Configg\\\\...','dispatch', Object(Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor), Array, 'designLoader')\r\n#8 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/Action/Plugin/Design.php(39): Magento\\Framework\\Interception\\Chain\\Chain->Magento\\Framework\\Interception\\Chain\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\r\n#9 [internal function]: Magento\\Framework\\App\\Action\\Plugin\\Design->aroundDispatch(Object(Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\r\n#10 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)\r\n#11 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\\Framework\\Interception\\Chain\\Chain->invokeNext('Magento\\\\Configg\\\\...','dispatch', Object(Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor), Array, 'adminMassaction...')\r\n#12 /var/www/sources/motorny/magento2/app/code/Magento/Backend/App/Action/Plugin/MassactionKey.php(33): Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\r\n#13 [internal function]: Magento\\Backend\\App\\Action\\Plugin\\MassactionKey->aroundDispatch(Object(Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\r\n#14 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)\r\n#15 /var/www/sources/motorny/magento2/var/generation/Magento/Config/Controller/Adminhtml/System/Config/Edit/Interceptor.php(40): Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor->___callPlugins('dispatch', Array, Array)\r\n#16 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/FrontController.php(45): Magento\\Config\\Controller\\Adminhtml\\System\\Config\\Edit\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\r\n#17 [internal function]: Magento\\Framework\\App\\FrontController->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\r\n#18 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)\r\n#19 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', Array)\r\n#20 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\\Framework\\Interception\\Chain\\Chain->invokeNext('Magento\\\\Framewwo..', 'dispatch', Object(Magento\\Framework\\App\\FrontController\\Interceptor), Array, 'install')\r\n#21 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(69): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\r\n#22 [internal function]: Magento\\Framework\\Module\\Plugin\\DbStatusValidator->aroundDispatch(Object(Magento\\Framework\\App\\FrontController\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\r\n#23 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)\r\n#24 /var/www/sources/motorny/magento2/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, Array)\r\n#25 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/Http.php(115): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\r\n#26 /var/www/sources/motorny/magento2/lib/internal/Magento/Framework/App/Bootstrap.php(257): Magento\\Framework\\App\\Http->launch()\r\n#27 /var/www/sources/motorny/magento2/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/187170160","html_url":"https://github.com/magento/magento2/issues/2045#issuecomment-187170160","issue_url":"https://api.github.com/repos/magento/magento2/issues/2045","id":187170160,"user":{"login":"brideo","id":4906361,"avatar_url":"https://avatars.githubusercontent.com/u/4906361?v=3","gravatar_id":"","url":"https://api.github.com/users/brideo","html_url":"https://github.com/brideo","followers_url":"https://api.github.com/users/brideo/followers","following_url":"https://api.github.com/users/brideo/following{/other_user}","gists_url":"https://api.github.com/users/brideo/gists{/gist_id}","starred_url":"https://api.github.com/users/brideo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brideo/subscriptions","organizations_url":"https://api.github.com/users/brideo/orgs","repos_url":"https://api.github.com/users/brideo/repos","events_url":"https://api.github.com/users/brideo/events{/privacy}","received_events_url":"https://api.github.com/users/brideo/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T13:24:10Z","updated_at":"2016-02-22T13:24:10Z","body":"Hi @sidolov,\r\n\r\nI just came across this issue too, steps to reproduce:\r\n\r\nEnvironment:\r\n\r\n* Make sure PHP Warnings are one\r\n* Developer mode on\r\n* My PHP version is: 5.6.17\r\n\r\nSteps to reproduce:\r\n\r\n* `update core_config_data set value = 9999999 where config_id = 39;`\r\n\r\nYou can set the value in the admin by going to:\r\n\r\n* Configuration > Advanced > Admin > Security > Session Lifetime (Seconds).\r\n\r\nValidation needs to be added around this in the admin to prevent store owners being able to cause warnings and errors on their websites, I'm happy to implement if given the thumbs up."}}