implement logout
simevo opened this issue · comments
if you log onto WP with this plugin then logout, the SPID session will stay open
trying to login again breaks it !
we should call $this->auth->logout()
FTMB, you can "manually" logout from SPID by clearing the cookies in chrome inspector
I have noticed that too, this is also related to : #5
I am now trying to find a way to keep the the 2 sessions (global and invididual) synchronized
My plan is to hook into the wp_logout
action hook and invoke Italia\Spid\Sp::logout
Currently before logging in with SPID I have two cookies: PHPSESSID
and wordpress_test_cookie
After logging in with SPID I have 4 more: session
and 3 some wordpress_xxx
After logging out I have three: PHPSESSID
, wordpress_test_cookie
and session