Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gelali

    setcookie() array works on linux, not Windows server!

    First, get settings, make array, serialize, and set cookie <? $submit= $HTTP_POST_VARS['submit']; $ColorMix = $HTTP_POST_VARS['ColorMix']; if ($submit=='submit'){ $fs=$HTTP_POST_VARS['textSize']; if ($ColorMix=='WhiteOnBlack'){ $fc='white'; $bg='black'; $allSettings=array($fs,$fc,$bg)...
  2. gelali

    Have to manually refresh to get values from cookie

    That was the code I tried. Can you see any problems? Also, I have read that the time of the cookie sometimes could cause problems due to the difference between the server time and the user's machine time? Do you know anything about that?
  3. gelali

    Have to manually refresh to get values from cookie

    setcookie ('sitestyle', $allSettings, time()+31536000, '/', 'domain.com', '0'); header("Refresh: 0; URL=$HTTP_REFERER"); or setcookie ('sitestyle', $allSettings, time()+31536000, '/', 'domain.com', '0'); $sUrl = "http://www.domain.com/script.php"; echo "\n<meta http-equiv=\"refresh\"...
  4. gelali

    Have to manually refresh to get values from cookie

    I tried refresh both through php or html, but still same problem.
  5. gelali

    setcookie() array works on linux, not Windows server!

    Thanks for the reply. I tried that, but the whole thing stopped working on both servers. when I unserialize and print the values out, nothing prints. If I print before unserializing, it prints the values with some slashes and extra charactors. Tried to add stripslashes, but still same problem...
  6. gelali

    Have to manually refresh to get values from cookie

    Another question about the cookies! One of my scripts will set cookie to change the prefrence of the user on how the site looks. The problem that it does not load the new settings untill the user hit refresh button manually on his browser. Is there any way to make it load automatically after...
  7. gelali

    setcookie() array works on linux, not Windows server!

    I have dynamic css.php that user can customize by changing different settings through a form. The form will set a cookie with an array of the settings. This works fine on a linux server. But When I tried it on a windows server, it does not work. When I print the values of the cookie, does not...

Part and Inventory Search

Back
Top