Jump to content


Photo

Weird Cookie Issue


  • Please log in to reply
2 replies to this topic

#1 scottpureds

scottpureds
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 December 2016 - 08:22 PM

Hello, I am sure this will be an easy one for you pros, and hopefully I am in the right place, but I am still wetting my feet with php and this one has me stumped.

 

I have a customer that claims their wordpress website sets a cookie when someone chooses a state so then when they click on the homepage later on they are actually redirected to a state specific version.

 

I know enough to be dangerous and I went through the code looking for the setcookie script with no luck, then I checked if a cookie was even being set (I took his word for it initially) and nothing was there (after multiple refreshes too and making sure cookies were accepted) so then I used cookie-checker.com to check the site and it agrees that no cookies are being set by the domain?! So I let the customer know he's either been duped by the previous developer or perhaps it broke somewhere along the way, but he sent me a screenshot showing a cookie with a state as the value??!!

 

What now? Apart from some conspiracy theory about the previous developer setting some computer specific trick for my customer I need some help on what may be going on and how to fix it.

 

Any thoughts or ideas? Thanks in advance!


Edited by scottpureds, 28 December 2016 - 08:23 PM.


#2 Jacques1

Jacques1
  • Gurus
  • Turtles all the way down
  • 3,583 posts

Posted 28 December 2016 - 08:42 PM

Ask the customer how exactly the state-specific version looks like (ideally with a screenshot). This should be easy to search for in the database and/or code.

 

Note that cookies can also be set with JavaScript, so you could try another code search.

 

If nothing helps, try to reproduce the customer's situation as accurately as possible. Use the same role (or even the same account), try a different browser, maybe even use a proxy. If possible, also ask your customer to try different browsers so that you can rule out any client-side influences (browser extensions, malware, ...).



#3 scottpureds

scottpureds
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 29 December 2016 - 05:33 AM

Ill give these a shot, thank you!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users