我的php.ini... [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = c:/apache1.3.22/download ;我的是c:/apache1.3.22/download ; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name ...
session.save_path = /tmp
这里是指定你的session所存放的临时文件夹,你可以指定一个目录如果不指定就必须在你所运行PHP的盘下根目录下建立一个TMP目录
[Session]
session.save_handler = files ; handler used to store/retrieve data
session.save_path = c:/apache1.3.22/download ;我的是c:/apache1.3.22/download
; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies = 1 ; whether to use cookies
session.name = PHPSESSID
; name of the session
; is used as cookie name
...
你要看看你的php的版本
要php4.0以上的版本才能用session