Instalirao sam PHP v5 na lokalnom racunaru nakon dugog koriscenja v4 i imam problema sa sesijama. Imam WinXP i ISS koji ide uz njega.
Kada pozovem session_start() dobijem gresku Permission denied (13) , ili duze:
Code:
Session ExpiredPHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\Korisnik\LOCALS~1\Temp\php\session\sess_aaieoldgd5cqk1e1vht8s11pk1, O_RDWR) failed: Permission denied (13) in C:\myprojects\test.php on line 2
Session ExpiredPHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\Korisnik\LOCALS~1\Temp\php\session\sess_aaieoldgd5cqk1e1vht8s11pk1, O_RDWR) failed: Permission denied (13) in C:\myprojects\test.php on line 2
PHP.ini fajl, deo oko sessija izgleda:
Code:
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Whether to use cookies.
session.use_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 = 0
; The path for which the cookie is valid.
session.cookie_path = /
; The domain for which the cookie is valid.
session.cookie_domain =
; argument passed to save_handler
;session.save_path= C:\Program Files\PHP\sessiondata
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Whether to use cookies.
session.use_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 = 0
; The path for which the cookie is valid.
session.cookie_path = /
; The domain for which the cookie is valid.
session.cookie_domain =
; argument passed to save_handler
;session.save_path= C:\Program Files\PHP\sessiondata
Dakle ovaj session.save_path je iskljucen, ali nije pomoglo i kada sam postavio ovu putanju (i napravio folder).
Da li sam nesto lose podesio? Imao sam slicne probleme i sa PHP v4, ali sam ih odavno resio i zaboravio gde sam sta gde :(
Sto je najcudnije, sesije rade i nakon sto se ova greska pojavila (?). Na remote serveru sve odlicno radi, kao sto je i radilo sa PHP4 (tamo je vec sve podeseno, ali nemam pristup PHP.ini fajlu).
Hvala na pomoci!