{"action":"created","issue":{"url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine/issues/22","repository_url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine","labels_url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine/issues/22/comments","events_url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine/issues/22/events","html_url":"https://github.com/GeneaLabs/laravel-caffeine/issues/22","id":134864620,"number":22,"title":"Still getting TokenMismatchException after Laravel session lifetime","user":{"login":"ivanvermeyen","id":3598622,"avatar_url":"https://avatars.githubusercontent.com/u/3598622?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanvermeyen","html_url":"https://github.com/ivanvermeyen","followers_url":"https://api.github.com/users/ivanvermeyen/followers","following_url":"https://api.github.com/users/ivanvermeyen/following{/other_user}","gists_url":"https://api.github.com/users/ivanvermeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanvermeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanvermeyen/subscriptions","organizations_url":"https://api.github.com/users/ivanvermeyen/orgs","repos_url":"https://api.github.com/users/ivanvermeyen/repos","events_url":"https://api.github.com/users/ivanvermeyen/events{/privacy}","received_events_url":"https://api.github.com/users/ivanvermeyen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-19T13:27:49Z","updated_at":"2016-02-19T18:23:06Z","closed_at":null,"body":"Hi\r\n\r\nWhen I leave a form open for a while, I still get a `TokenMismatchException`.\r\nI'm using Laravel 5.2.\r\n\r\nFor testing I've set the session lifetime in `config/session.php` to 3 minutes and the drip interval to 1 min (60000ms). The drip route is being called every minute as it should (no errors in the Chrome network tab).\r\n\r\nAfter the first drip I can still send the form, but after 3 drips or minutes I get the Token exception.\r\n\r\n```\r\nTokenMismatchException in VerifyCsrfToken.php line 67:\r\n```\r\n\r\nSeems the session isn't actually being refreshed?"},"comment":{"url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine/issues/comments/186347538","html_url":"https://github.com/GeneaLabs/laravel-caffeine/issues/22#issuecomment-186347538","issue_url":"https://api.github.com/repos/GeneaLabs/laravel-caffeine/issues/22","id":186347538,"user":{"login":"ivanvermeyen","id":3598622,"avatar_url":"https://avatars.githubusercontent.com/u/3598622?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanvermeyen","html_url":"https://github.com/ivanvermeyen","followers_url":"https://api.github.com/users/ivanvermeyen/followers","following_url":"https://api.github.com/users/ivanvermeyen/following{/other_user}","gists_url":"https://api.github.com/users/ivanvermeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanvermeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanvermeyen/subscriptions","organizations_url":"https://api.github.com/users/ivanvermeyen/orgs","repos_url":"https://api.github.com/users/ivanvermeyen/repos","events_url":"https://api.github.com/users/ivanvermeyen/events{/privacy}","received_events_url":"https://api.github.com/users/ivanvermeyen/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T18:23:06Z","updated_at":"2016-02-19T18:23:06Z","body":"Update 2: Found the issue! :)\r\n\r\nIn your `routes.php` file `Route::getMiddleware()` returns only the `protected $routeMiddleware` in `Kernel.php`. So `Route::getMiddleware()['web']` is never set. Because the drip route is then registered outside of a 'web' route group, it has no knowledge of sessions etc.\r\n\r\nHaven't found a proper way to check if a route group is set though..."}}