Can someone explain to me how I would go about changing WordPress comment_author
cookie expiery tag, I want to delete the 'Expires='
tag to change it to a session cookie.
Where would i do this in the php files?
Thanks
Can someone explain to me how I would go about changing WordPress comment_author
cookie expiery tag, I want to delete the 'Expires='
tag to change it to a session cookie.
Where would i do this in the php files?
Thanks
You must be logged in to post a comment.
If you just want to change expiration date, you can use comment_cookie_lifetime filter.
E.g. to expire it after two years:
To change it to session, you need to remove default wp_set_comment_cookies from set_comment_cookies hook and add your own one to set session cookie.
Example: