Firefox caches the redirect requests

Hi All,

Issue: Firefox caches the redirect requests

Goal: when a visitor visits this location is saved in a cookie.
if the visitor accesses and the cookie is there redirect where the cookie is pointing i.e.

For some reasons Firefox 11.x is caching the redirect requests?!?

any ideas how to stop it?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
I'm sorry but that didn't make any sense.  What do cookies have to do with redirects?
Ray PaseurCommented:
You mean that the cookie contains information like a URL?  Can you please post the code you're using for this?  Most ad companies use a similar set of redirects to put and sense cookies on the client browser, and I've never seen a problem.  I use FF11 all the time and my ad networks are just fine.  In fact, I just used and watched it work.  It looks correct to me.
Ray PaseurCommented:
Here are the screen shots showing the cookies.Cookies named beta...No cookies named like toronto...
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

svetoslavmAuthor Commented:
Hi, Thanks for the quick reply.

The cookie name is last_host. The cookies are used to track the last visited subdomain so when the main domain is visited i.e. it will check the cookie and redirect to that subdomain.

Can you try these links?

then go visit it is supposed to redirect to the last visited subdomain in this example should be Toronto.
Dave BaldwinFixer of ProblemsCommented:
It is working as you have described in Firefox 11 on my computer.  Redirects to the last subsite visited.
Ray PaseurCommented:
Yep, works for me, too.
Ray PaseurCommented:
Well, this is interesting.  Apparently the script cannot tell which cities are valid.Any subdomain is OK?
svetoslavmAuthor Commented:
Ray, the script will always put the correct hostname.
yes, all subdomains are ok.

check this video I made.
Dave BaldwinFixer of ProblemsCommented:
You must have different code when you are logged in because the dropdowns don't work in the pages you are showing us.  Are you saving the subsite info in a database or session also?
Ray PaseurCommented:
... all subdomains are ok.
Even the one I tried?!
svetoslavmAuthor Commented:
Ray, good catch.... fixed. Now I saw the *content* of the cookie.

Dave, which dropdowns ? Any screenshots ?
What difference does it make if the user is logged in or not ?

Thanks all for helping me troubleshoot this.
Dave BaldwinFixer of ProblemsCommented:
In your video, you were clicking in what I thought was a dropdown box to get the other sub-sites.  Or was that just Firefox auto-suggesting previous entries?  I just tried again and your auto-suggest for the city box is acting a little odd.  Most people would expect that it appear in alphabetical order with the letter that is typed.  But when I type an 'r', I get listing that start with everything but 'r'.

Anyway, I can't get Firefox 11 to work the way you showed in your video.  It works the way you said it is supposed to.
svetoslavmAuthor Commented:
Dave, the autosuggest feature searches for a match not just starting with ... "some text"
I using firefox 11 too. So strange.
are you on Windows 7 too?
Dave BaldwinFixer of ProblemsCommented:
No, I'm on XP but Ray is probably on Windows 7.  Auto-suggest everywhere else like Google returns text that starts with the text typed in.
svetoslavmAuthor Commented:
Hi Dave, yep make sense. I will update it.
If it all works then I should close this question then

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
svetoslavmAuthor Commented:
Thanks :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.