Mikijs Posted October 20, 2008 Report Share Posted October 20, 2008 (edited) sveiki, tātad problēma ir sekojoša Kods <?php session_start(); if($user=="correct") $_SESSION["db"]=$_POST["current_usr"]; ?> tatad <?php print_r($_SESSION); ?> Array () [current_usr] => "Mikijs" un tagad es uzspiezu kadu linku un $_SESSION ir tuksh.. :/ kur varetu but problema? jo uz 1 servera man viss strada saglaba Sessiju, bet uz otra ne, vai tiesam ta ir php.ini vai kkada apache konfiguracijas kluda un ja ta vai varetu pateikt kas isti jaizdara ? Edited October 20, 2008 by Mikijs Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2008 Report Share Posted October 20, 2008 session_start() ir visos failos ? Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 session_start ir core faila kurs tiek ieklauts katra lapas ielade un parejie faili tiek includoti, ka jau mineju uz servera "Windows" viss strada uz "Linux" ir problema (šī) Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2008 Report Share Posted October 20, 2008 Hmm, ieslēdz uz Linux servera error_reportingu pilnībā. Varbūt problēma "headers already sent", bet tu to vienkārši neredzi. Link to comment Share on other sites More sharing options...
v3rb0 Posted October 20, 2008 Report Share Posted October 20, 2008 ja headeri nav vainīgi, tad skaties vai session_save_path i rightīgs? Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 a ka lai "session_save_path" apstos ja esmu caur ssh? un nav tiesa piekluve php.ini utt. Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 domaju ka headeri nav vainigi Gabals no headera kodam <?php set_magic_quotes_runtime (0); error_reporting (E_ALL); session_start(); if (isset ($_CONF_PATH)) require_once ($_CONF_PATH.'conf.php'); if (!defined ('CMS_PATH')) die ('Configuration file is not found!'); if (!isset ($_ISFULL)) $_ISFULL = 1; if (!isset ($_ISHTA)) $_ISHTA = 0; if (!isset ($_SKIP_HEADERS)) $_SKIP_HEADERS = 0; if ($_ISHTA) { header ('Content-Type: application/hta; charset=UTF-8'); } un tiek izveidots HTA applications, tapec headerim viss kartiba :) Link to comment Share on other sites More sharing options...
Aleksejs Posted October 20, 2008 Report Share Posted October 20, 2008 phpinfo(); varētu parādīt. Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 (dumB) pareizi .. pastisos Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2008 Report Share Posted October 20, 2008 Because an HTA has more privileges than an HTML page, it cannot be executed via HTTP. Rather, the HTA must be downloaded (just like an EXE file) and executed from local file system. Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 (edited) session Session Support enabled Registered save handlers files user Registered serializer handlers php php_binary wddx Directive - - - - - - - - - -- - - - Local Value - - - - - - - Master Value session.auto_start - - - - - -- - - - Off - - - - - - - - - - - - - Off session.bug_compat_42 - - - -- - -On - - - - - - - - - - - - - On session.bug_compat_warn - - - - - On - - - - - - - - - - - - - On session.cache_expire - - - - -- - - 180 - - - - - - - - - - - - - 180 session.cache_limiter - - - -- - - nocache - - - - - - - - - -nocache session.cookie_domain - - - - - no value - - - - - - - - - -no value session.cookie_httponly - -- - - - Off - - - - - - - - - - - - - -Off session.cookie_lifetime - - - - - - - 0 - - - - - - - - - - - - - - -0 domaju ka te varetu but ta problema, bet tas ir cookie ? session.cookie_path - - - - - - - - - / - - - - - - - - - - - - - - / session.cookie_secure - - - - - - - Off - - - - - - - - - - - - - Off session.entropy_file - - - - - - - -no value - - - - - - - - - - no value session.entropy_length - - - - - - - -0 - - - - - - - - - - - - - - - 0 session.gc_divisor - - - - - -- - - - 100 - - - - - - - - - - - - - 100 session.gc_maxlifetime - - - - - - -1440 - - - - - - - - - - - - - 1440 session.gc_probability - - - - - -- - - 0 - - - - - - - - - - - - - - 0 session.hash_bits_per_character - - 4 - - - - - - - - - - - 4 session.hash_function - - - - - - - - -0 - - - - - - - - - - - -0 session.name - - - - - - - - - - - PHPSESSID - - - - - PHPSESSID session.referer_check - - - - - - - no value - - - - - - no value session.save_handler - - - - - - - - files - - - - - - - - - -files session.save_path - - - - - - - - /home/tmp - - - /var/lib/php5 session.serialize_handler - - - - - - php - - - - - - - - - - php session.use_cookies - - - - - - - - - - On - - - - - - - - - On session.use_only_cookies - - - - - - - Off - - - - - - - - - Off session.use_trans_sid - - - - - - - - - - 0 - - - - - - - - - - - 0 Edited October 20, 2008 by Mikijs Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 es to visu apzinos.. :) <?php Headers(uzliekam ka ir HTA) un viss notiek.. uz servera tiek generati dati un ka HTA ir FrameWorks utt.. un katrs freims ietver "admin.php") kura ir session start.. un admin.php parbauda ja ir index.php tatad isHTA veidojam HTA failu ja nav tad attiecigo freimu.) ?> Link to comment Share on other sites More sharing options...
Mikijs Posted October 20, 2008 Author Report Share Posted October 20, 2008 (edited) bet teiksim uz servera uz kura man tas session strada loti labi var redzet ka session.save_path = no value vieniga starpbiba ir dators uz kura strada tie sess.. session.gc_probability 1 dators uz kruan estrada tie sess.. session.gc_probability 0 Edited October 20, 2008 by Mikijs Link to comment Share on other sites More sharing options...
Recommended Posts