{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/9172","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9172/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9172/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9172/events","html_url":"https://github.com/joomla/joomla-cms/issues/9172","id":135011713,"number":9172,"title":"Ajax request and session time out","user":{"login":"alex-filat","id":4964848,"avatar_url":"https://avatars.githubusercontent.com/u/4964848?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-filat","html_url":"https://github.com/alex-filat","followers_url":"https://api.github.com/users/alex-filat/followers","following_url":"https://api.github.com/users/alex-filat/following{/other_user}","gists_url":"https://api.github.com/users/alex-filat/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-filat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-filat/subscriptions","organizations_url":"https://api.github.com/users/alex-filat/orgs","repos_url":"https://api.github.com/users/alex-filat/repos","events_url":"https://api.github.com/users/alex-filat/events{/privacy}","received_events_url":"https://api.github.com/users/alex-filat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-20T00:41:05Z","updated_at":"2016-04-22T17:42:44Z","closed_at":null,"body":"Hi,\r\n\r\nI think should be some standard logic when we send ajax request while session is expired. System should redirect to login screen insteed to alert Ajax error message in js. It is easily to see in language component /administrator/index.php?option=com_languages&view=override&layout=edit when searching words. Go to this component , manually expire session (f.e. drop it in db) then serach for some word.\r\n\r\nIf look deep inside at the moment when session expired and we press search button (this function send json type ajax request), system response \" 404 view not found [name, type, prefix]: login, json, loginView\", it means that system does not handle situation at all.\r\n\r\nI have more detailed information about this problem and actually can codding some solution but may be people who participated in developent of this part of architecture want to fix that.\r\n\r\nAlex"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/213525220","html_url":"https://github.com/joomla/joomla-cms/issues/9172#issuecomment-213525220","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9172","id":213525220,"user":{"login":"alex-filat","id":4964848,"avatar_url":"https://avatars.githubusercontent.com/u/4964848?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-filat","html_url":"https://github.com/alex-filat","followers_url":"https://api.github.com/users/alex-filat/followers","following_url":"https://api.github.com/users/alex-filat/following{/other_user}","gists_url":"https://api.github.com/users/alex-filat/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-filat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-filat/subscriptions","organizations_url":"https://api.github.com/users/alex-filat/orgs","repos_url":"https://api.github.com/users/alex-filat/repos","events_url":"https://api.github.com/users/alex-filat/events{/privacy}","received_events_url":"https://api.github.com/users/alex-filat/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T17:42:44Z","updated_at":"2016-04-22T17:42:44Z","body":"Hi Brian , please leave it for a while i remember about. It is not small thing, i'll try to find time at near future.\r\n"}}