problem is this :
when i am not able to reset cookies but there's two ways one way i can do but another way i cannot.
1. i place one link as domain.com/user/logout
when user click on this then i place code
in this user redirect to this link then move to domain.com but again user login in..
2. when i call domain.com/user/logout from address bar then it do same function but this do all things as per requirement unset session and delete cookies and user logout.
so please let me know why this happen.. i need when user click on logout button then all done.