nemakuphp Posted May 22, 2009 Report Share Posted May 22, 2009 Tātad, problēma īsa. Netiek nolasīts cookie. print_r($_COOKIE['']); neko neuzrāda Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 22, 2009 Report Share Posted May 22, 2009 Pamēģini: print_r($_COOKIE); jo citādi mēģini izdrukāt cepumu, kuram nav nosaukuma - [''] Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted May 22, 2009 Author Report Share Posted May 22, 2009 Mēģināju. Atgirež tikai Array() Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 22, 2009 Report Share Posted May 22, 2009 Tad parādi to koda daļu, kas uzstāda cookie. Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted May 22, 2009 Author Report Share Posted May 22, 2009 setcookie ('nosaukums', $value, time() + 10800); Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 22, 2009 Report Share Posted May 22, 2009 Pārtaisi par: setcookie ('nosaukums', $value, time() + 10800) or die('Āāāā! Viss ir slikti, raugs un milti beigušies!'); // :) Iespējams, ka kaut kur ir sākusies datu izvade nevietā - kāds warnings vai kkas tamlīdzīgs (Par "Headers already sent"). Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted May 22, 2009 Author Report Share Posted May 22, 2009 Nē. Tas ir IPB login skripts. Ja būtu kāds nepareizs value, tad nevarētu ielogoties IPB. IPB to value nolasa, bet sākumlapā, kaut kādā veidā netiek nolasīta. Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 22, 2009 Report Share Posted May 22, 2009 Varbūt, ka IPB uzliek tādu domain un path, ka Tas cookie netiek nosūtīts uz lapu kurā to gribi nolasīt? http://lv.php.net/manual/en/function.setcookie.php Quote Link to comment Share on other sites More sharing options...
indoom Posted May 22, 2009 Report Share Posted May 22, 2009 (edited) echo session_id(); Varbūt sesija nav sākta. EDIT: jā, sajuka, šito ignorēt :) Edited May 22, 2009 by indoom Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted May 22, 2009 Author Report Share Posted May 22, 2009 kāds te sakars ar sesijām? ar patch viss itkā ir ok. Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 22, 2009 Report Share Posted May 22, 2009 Kādu patch? Un kā Tu nosaki, ka ir ok? Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted May 22, 2009 Author Report Share Posted May 22, 2009 patch ir itka globals .domens.lv Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted May 22, 2009 Report Share Posted May 22, 2009 PaTH nav domēns - tie ir divi dažādi mainīgie. path The path on the server in which the cookie will be available on. If set to '/', the cookie will be available within the entire domain . If set to '/foo/', the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain . The default value is the current directory that the cookie is being set in. domain The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the » spec for details. Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted May 22, 2009 Author Report Share Posted May 22, 2009 sajaucu PATH ir / 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.