| heliown wrote: |
create a cookie named 'cc_user_id' when a user logs in and destroy the cookie when the user logs out.
|
I guess you'd have to amend
/includes/classes/cpg_member.php which is where the login cookie is set.
After line 178 add this :-
| Code:: |
setcookie('cc_user_id','',-1, $MAIN_CFG['cookie']['path'], $MAIN_CFG['cookie']['domain']);
|
And after line 184 (or what is now line 185) add this :-
| Code:: |
setcookie('cc_user_id',$setuid,(gmtime()+15552000), $MAIN_CFG['cookie']['path'], $MAIN_CFG['cookie']['domain']);
|
I guess that would do it, but obviously have no means of testing myself.