faqts : Computers : Programming : Languages : PHP : Common Problems : Errors

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 19 people (95%) answered Yes
Recently 8 of 8 people (100%) answered Yes

Entry

How to make your session functions work in PHP4+IIS4

May 27th, 2000 00:55
Jong Park,


I found my PHP4 session functions not work in IIS4 and NT4.0.
Finally I found soultion...  ^^;

(1) Set your PHP4 running in CGI mode just like PHP3, not in ISAPI mode 
written in installation guide. This makes more hard drive access and 
slows the server, but they really work.

(2) Open PHP.INI file and change the variable "session.save_path" as 
the correct directory name. And, you must make that directory in every
(!) drive where your PHP application files are.

(example) My server has wwwroot directory in d: drive and more virtual 
directories in e: drive. I changed the value of "session.save_path" in 
PHP.INI file like this:

session.save_path = /temp

and I made the directory named "TEMP" in c:\(already exists), d:\, and 
e:\ drives...

Now can I see my session functions running well...

I hope this problem to be fixed in next version.
Good Luck!