Title: Cookie Redirect?
Last modified: July 6, 2023

---

# Cookie Redirect?

 *  Resolved [grungyape](https://wordpress.org/support/users/grungyape/)
 * (@grungyape)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/cookie-redirect/)
 * I see it in the description, but I am missing the how. Are there any examples
   of using cookie values to do redirections?
 * Basically if cookie x exists, grab the current URL, grab the cookie value and
   add it to the end as the “last page”.
 * Example: mywebsite.com/product
   Cookie value: newyorkRedirection: mywebsite.com/
   product/newyork
 * Possible?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/cookie-redirect/#post-16876011)
 * Not possible, no, and probably not an advisable thing to do as you leave yourself
   open to security issues from being an open redirect.
 *  Thread Starter [grungyape](https://wordpress.org/support/users/grungyape/)
 * (@grungyape)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/cookie-redirect/#post-16876018)
 * OK, thanks for the advice!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cookie Redirect?’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [grungyape](https://wordpress.org/support/users/grungyape/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/cookie-redirect/#post-16876018)
 * Status: resolved