PHP _COOKIE not set despite it being set in the cookie header -


i can't quite figure out, setting cookie follows in php code.

setcookie('remember', $scookie, time()+31557600, '/'); 

and can see in headers

cookie:__utma=144618662.427039340.1410986461.1413382878.1413400525.42; __utmz=144618662.1412022114.19.3.utmcsr=unknown|utmccn=embed|utmcmd=embed; _ga=ga1.2.427039340.1410986461; remember=j%15%1c%009f%f0%0f%e6%24%c9%26%04%a8%3ej8gp%2flxjvo3alczfvo6em5a%3d%3d; phpsessid=pjaso28lsfkt16e9takc3s6q42 

but if var_dump($_cookies) is

array(4) {     '__utma' => string(55) "144618662.427039340.1410986461.1413382878.1413400525.42"     '__utmz' => string(66) "144618662.1412022114.19.3.utmcsr=unknown|utmccn=embed|utmcmd=embed"     '_ga' => string(26) "ga1.2.427039340.1410986461"     'phpsessid' => string(26) "pjaso28lsfkt16e9takc3s6q42" } 

other info

  • the domain development one, port non-standard, 8888 instead of 80. domain, commandstation.byl.dev.
  • i running exact same code on byl.dev:8888 , works without issue.
  • if @ cookie info through chrome plugin host (commandstation.byl.dev) , path (/) right.

does have suggestions next debug issue?

i figured out. value storing cookie (which fyi generated openssl_encrypt) not compatible cookies.

i base64 encoded value after encrypting , works fine. fluke encrypted string on primary domain acceptable, , know doesn't work make same fix there.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -