Welcome! Log In Create A New Profile


Redirecting based on cookie value

February 03, 2012 02:16PM

I'm want to redirect the user based on the value of a cookie, if present.

The scenario is one where there is a "starter" homepage for first time users. As soon as users login, I write a cookie with the relative path of another homepage. If the cookie is present, I want to redirect the user to the cookie value: the relative path. There are multiple cookies present in the request, such as session cookies.

I could of course, let the homepage be determined on the session on the app server side, but since this is the landing page, I prefer to support it with nginx reverse proxy caching. Hence the idea of using cookies to redirect the user once he has logged in once.

Any ideas?

Subject Author Posted

Redirecting based on cookie value

mschipperheyn February 03, 2012 02:16PM

Re: Redirecting based on cookie value

António P. P. Almeida February 03, 2012 02:28PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready