Trouble Twitter-Logout in codeigniter using OAuth


I Have developed twitter login for authentication in my website in codeigniter but i have an problem in logout of twitter and redirected back my website page.Then how can i provide logout and redirected path in URL after logout if i have an twitter user id,secret token,apps id