Home Delete cookie based on url and referrer
Reply: 0

Delete cookie based on url and referrer

user1030 Published in August 15, 2018, 11:15 am

Is it possible to delete a specific cookie via Apache if a certain page request contains a specific referrer?

I have found a similar question which is about deleting cookies in general (How to remove a cookie in Apache) but this does not use any conditions or cookie names.

My concrete use case is: Delete (or unset it's value) cookie named "country" if requested url is "/choose-language" and referrer is "www.external.domain".

Currently the following Apache modules are available:

core mod_so mod_watchdog http_core mod_log_config mod_logio     
mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic 
mod_authn_core mod_authn_file mod_authz_core mod_authz_host 
mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_expires 
mod_filter mod_headers mod_mime prefork mod_negotiation mod_php7 
mod_proxy mod_proxy_fcgi mod_remoteip mod_rewrite mod_setenvif 
mod_socache_shmcb mod_ssl mod_status
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301231 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO