{"action":"created","issue":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11455","labels_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11455/labels{/name}","comments_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11455/comments","events_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11455/events","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/11455","id":104515444,"number":11455,"title":"SSO Login causes warnings on session_start()","user":{"login":"gallart","id":2728195,"avatar_url":"https://avatars.githubusercontent.com/u/2728195?v=3","gravatar_id":"","url":"https://api.github.com/users/gallart","html_url":"https://github.com/gallart","followers_url":"https://api.github.com/users/gallart/followers","following_url":"https://api.github.com/users/gallart/following{/other_user}","gists_url":"https://api.github.com/users/gallart/gists{/gist_id}","starred_url":"https://api.github.com/users/gallart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gallart/subscriptions","organizations_url":"https://api.github.com/users/gallart/orgs","repos_url":"https://api.github.com/users/gallart/repos","events_url":"https://api.github.com/users/gallart/events{/privacy}","received_events_url":"https://api.github.com/users/gallart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lem9","id":195509,"avatar_url":"https://avatars.githubusercontent.com/u/195509?v=3","gravatar_id":"","url":"https://api.github.com/users/lem9","html_url":"https://github.com/lem9","followers_url":"https://api.github.com/users/lem9/followers","following_url":"https://api.github.com/users/lem9/following{/other_user}","gists_url":"https://api.github.com/users/lem9/gists{/gist_id}","starred_url":"https://api.github.com/users/lem9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lem9/subscriptions","organizations_url":"https://api.github.com/users/lem9/orgs","repos_url":"https://api.github.com/users/lem9/repos","events_url":"https://api.github.com/users/lem9/events{/privacy}","received_events_url":"https://api.github.com/users/lem9/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-02T16:02:14Z","updated_at":"2015-09-03T13:46:47Z","closed_at":"2015-09-03T13:24:54Z","body":"Hello PMA,\r\n\r\nI'm using SSO-Login to auto-login my users to their PMA instances.\r\n\r\nProblem, the second session_start() in files/session.inc.php drops a warning (session already started).\r\n\r\nShould we fix session.inc.php or should I use a different code for SSO ?\r\n\r\nHere is my code :\r\n\r\n```\r\n<?php\r\n// ... \r\nif(!empty($_POST)) {\r\n        // make the cookie reachable :\r\n        session_set_cookie_params(0, '/', '', 0);\r\n        // same as in config.inc.php : \r\n        session_name('SignonSession');\r\n        session_start();\r\n        $_SESSION['PMA_single_signon_user'] = $_POST['user'];\r\n        $_SESSION['PMA_single_signon_password'] = $_POST['password'];\r\n\r\n        // save changes :\r\n        session_write_close();\r\n\r\n        // Write sso cookie\r\n        setcookie('sso','1', time()+3600);\r\n\r\n        // finally redirect to phpMyAdmin :\r\n        header('Location: /phpmyadmin/index.php');\r\n}\r\nelse {\r\n        echo \"Erreur d'authentification !\";\r\n}\r\n// ... the login form may follow here ...\r\n?>\r\n```\r\n\r\nThanks,\r\n\r\nGaëtan"},"comment":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/comments/137452040","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/11455#issuecomment-137452040","issue_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11455","id":137452040,"user":{"login":"lem9","id":195509,"avatar_url":"https://avatars.githubusercontent.com/u/195509?v=3","gravatar_id":"","url":"https://api.github.com/users/lem9","html_url":"https://github.com/lem9","followers_url":"https://api.github.com/users/lem9/followers","following_url":"https://api.github.com/users/lem9/following{/other_user}","gists_url":"https://api.github.com/users/lem9/gists{/gist_id}","starred_url":"https://api.github.com/users/lem9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lem9/subscriptions","organizations_url":"https://api.github.com/users/lem9/orgs","repos_url":"https://api.github.com/users/lem9/repos","events_url":"https://api.github.com/users/lem9/events{/privacy}","received_events_url":"https://api.github.com/users/lem9/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T13:46:47Z","updated_at":"2015-09-03T13:46:47Z","body":"My configuration is set to show notices. Did you try my example?"}}