{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12485","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/12485/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12485/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12485/events","html_url":"https://github.com/laravel/framework/issues/12485","id":136522515,"number":12485,"title":"Storing a session in ajax call","user":{"login":"rashmi1403","id":11789595,"avatar_url":"https://avatars.githubusercontent.com/u/11789595?v=3","gravatar_id":"","url":"https://api.github.com/users/rashmi1403","html_url":"https://github.com/rashmi1403","followers_url":"https://api.github.com/users/rashmi1403/followers","following_url":"https://api.github.com/users/rashmi1403/following{/other_user}","gists_url":"https://api.github.com/users/rashmi1403/gists{/gist_id}","starred_url":"https://api.github.com/users/rashmi1403/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashmi1403/subscriptions","organizations_url":"https://api.github.com/users/rashmi1403/orgs","repos_url":"https://api.github.com/users/rashmi1403/repos","events_url":"https://api.github.com/users/rashmi1403/events{/privacy}","received_events_url":"https://api.github.com/users/rashmi1403/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T21:49:36Z","updated_at":"2016-02-25T21:58:53Z","closed_at":"2016-02-25T21:58:49Z","body":"I am aware that we need to add routes in middleware 'web' group to set and get sessions. \r\nHow do we do the same using ajax? \r\nWhen I add the ajax route in the middleware 'web' group the ajax call is not executed. \r\nAnd when its route is outside this group it works. But then I cannot set or get sessions when its outside.\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/189004567","html_url":"https://github.com/laravel/framework/issues/12485#issuecomment-189004567","issue_url":"https://api.github.com/repos/laravel/framework/issues/12485","id":189004567,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T21:58:53Z","updated_at":"2016-02-25T21:58:53Z","body":"Please ask on the forums."}}