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? Quote Link to comment 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.. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 ***BUMP** Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Author Share Posted April 11, 2007 anything *bump* Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.