PC Nerd Posted April 9, 2007 Author Share Posted April 9, 2007 um, i cant seem to find the cookie even after i know its created and after i can see its ( still timestamp )output can i find exactly where the cookie is, through php, becauase i dont think that its being saved in the same place? Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-224990 Share on other sites More sharing options...
clown[NOR] Posted April 9, 2007 Share Posted April 9, 2007 i heard google calling your name...hehe... i have no clue m8.. Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-224997 Share on other sites More sharing options...
PC Nerd Posted April 9, 2007 Author Share Posted April 9, 2007 lol, kk, does anyone else know, or have suggestion to fix script Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-224999 Share on other sites More sharing options...
per1os Posted April 9, 2007 Share Posted April 9, 2007 Cookies can be picky especially on certain servers. If you are working on Localhost you have to set the cookie up differently. For localhost see this article: http://www.aeonity.com/frost/php-setcookie-localhost-apache //bool setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly]]]]]] ) Using that this is the proper way to setup a cookie. <?php setcookie($name, $value, strtotime('+ 30 minutes'), '/', 'www.yourdomain.com'); ?> Now a tone here is the destroying of a cookie is done the same way except with minus minutes. Cookies set on yourdomain.com will only work on yourdomain.com they will not work on www.yourdomain.com, at least on my server. So I setup an .htaccess to rewrite any request to yourdomain.com to goto www.yourdomain.com so I do not get any inconsistencies. Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-225055 Share on other sites More sharing options...
PC Nerd Posted April 10, 2007 Author Share Posted April 10, 2007 ok, this person posted in the other thread : HaLo2FrEeEk : "Did you try clearing your cache of all cookies, making sure all of them are gone, then running the script again? Maybe it is picking up residual cookie...crumbs (lol, pun)" thats why i asked about the locations of the cookies, becauase i couldnt find any where all the other cookies are kept.... ! um, ill check that cookie syntax now thankx for all your help! Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-225569 Share on other sites More sharing options...
PC Nerd Posted April 10, 2007 Author Share Posted April 10, 2007 u,, where you set the domain and locatio stuff, is there a global variable or value stating where this script ifs running from? and i dont think that the cookie setting is the problem, becauase it was working until i added the database login ID value..... any more suggestions? thankx Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-225679 Share on other sites More sharing options...
PC Nerd Posted April 10, 2007 Author Share Posted April 10, 2007 ive been playing with my code all afternoon and cant seem to get anywhere........ does anyone have any suggestions? Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-225799 Share on other sites More sharing options...
PC Nerd Posted April 10, 2007 Author Share Posted April 10, 2007 *bump* does anyone have any idea whats wrong with setting the cookies? Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-226320 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 ***BUMP** Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-226525 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 anything *bump* Link to comment https://forums.phpfreaks.com/topic/46237-cookie-problems/page/2/#findComment-226666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.