evet, dediğiniz gibi yaptım. sorun bitti. yalnız bir sorunum daha var,
$id=5;
session_start();
session_register("id");
olarak session oluşturuyorum,
echo $HTTP_SESSION_VARS["id"];
yazdığım 0 yazdırıyor ekrana. eski makinede de aynı kodlarla çalışıyordu bir sorun yoktu. sanıyorum yine php.ini deki farklı bir ayardan kaynaklanan bir sorun...
php.ini'deki session bölümü şu şekilde:
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
session.save_path = "/var/lib/php/session"
; Whether to use cookies.
session.use_cookies = 1
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 900
bir yanlışlık mı var acaba?