{"action":"created","issue":{"url":"https://api.github.com/repos/asasmoyo/yii-simplesamlphp/issues/1","labels_url":"https://api.github.com/repos/asasmoyo/yii-simplesamlphp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/asasmoyo/yii-simplesamlphp/issues/1/comments","events_url":"https://api.github.com/repos/asasmoyo/yii-simplesamlphp/issues/1/events","html_url":"https://github.com/asasmoyo/yii-simplesamlphp/issues/1","id":99854456,"number":1,"title":"No_State error","user":{"login":"kpugazh","id":1083632,"avatar_url":"https://avatars.githubusercontent.com/u/1083632?v=3","gravatar_id":"","url":"https://api.github.com/users/kpugazh","html_url":"https://github.com/kpugazh","followers_url":"https://api.github.com/users/kpugazh/followers","following_url":"https://api.github.com/users/kpugazh/following{/other_user}","gists_url":"https://api.github.com/users/kpugazh/gists{/gist_id}","starred_url":"https://api.github.com/users/kpugazh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpugazh/subscriptions","organizations_url":"https://api.github.com/users/kpugazh/orgs","repos_url":"https://api.github.com/users/kpugazh/repos","events_url":"https://api.github.com/users/kpugazh/events{/privacy}","received_events_url":"https://api.github.com/users/kpugazh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-09T02:26:00Z","updated_at":"2015-08-11T13:50:57Z","closed_at":null,"body":"I am getting No_State found error in Yii. But calling IDP just as simple php file in samllogin.php\r\n$url = SimpleSAML_Module::getModuleURL('core/authenticate.php', array('as' => $as));\r\n                    $params = array(\r\n                    'ErrorURL' => $url,\r\n                    'ReturnTo' => $url,\r\n               );\r\n                $as->login();\r\n\r\nit works fine and redirects to the same page. I have gone through all google links also\r\n\r\nCan you please let me know why this is happening\r\n\r\nMy domain name is \r\n- www.example.org/myapp (Yii app)\r\n- www.example.org/simplesamlphp\r\n\r\nand since the SAML is responding to \r\nwww.example.org/testSAML/samllogin.php (simple php)\r\n\r\nThis is not CORS problem\r\n\r\nThanks in Advance\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asasmoyo/yii-simplesamlphp/issues/comments/129880127","html_url":"https://github.com/asasmoyo/yii-simplesamlphp/issues/1#issuecomment-129880127","issue_url":"https://api.github.com/repos/asasmoyo/yii-simplesamlphp/issues/1","id":129880127,"user":{"login":"asasmoyo","id":3714842,"avatar_url":"https://avatars.githubusercontent.com/u/3714842?v=3","gravatar_id":"","url":"https://api.github.com/users/asasmoyo","html_url":"https://github.com/asasmoyo","followers_url":"https://api.github.com/users/asasmoyo/followers","following_url":"https://api.github.com/users/asasmoyo/following{/other_user}","gists_url":"https://api.github.com/users/asasmoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/asasmoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asasmoyo/subscriptions","organizations_url":"https://api.github.com/users/asasmoyo/orgs","repos_url":"https://api.github.com/users/asasmoyo/repos","events_url":"https://api.github.com/users/asasmoyo/events{/privacy}","received_events_url":"https://api.github.com/users/asasmoyo/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T13:50:57Z","updated_at":"2015-08-11T13:50:57Z","body":"Are you sure your SP can connect to your mysql database? In my experience using simplesamlphp state information lost means that there is problem when the simplesamlphp retieve informations from the session storage. When hosting yii and simplesamlphp on the same server with default session storage their session somehow conflict with each other, so we need to separate their session storage. My current approach is using other session storage like database or memcached to store the session. If this still can't fix your problem then maybe there is problem somewhere in your configuration. Well, you should look for problems in your log files, in the simplesamlphp, your web server and your php then fix them. Have you try the newer version of simplesamlphp? The newest (i don't remember which version) simplesamlphp has ben integrated with composer, so you can check if there is problem with your php. "}}