Click to See Complete Forum and Search --> : session configuration in php.ini


xsfssg
05-24-2007, 10:35 AM
Could some one please help me check my session configuration below?

I am attempting to manually setup PHP to run on Win2003 with IIS7 & using HTTPS certificate.

When I try to login (https disabled or enabled) I don't seem to have any cookies in my IE Temporary Files, but the session does start - they are write fine to the session.save_path

;session.save_path = "/tmp"
session.save_path="C:\php\session"
session.save_handler = files
session.use_cookies = 1
;session.cookie_secure = Off
;session.use_only_cookies = 1
session.name = SID
session.auto_start = Off
session.cookie_lifetime = 0
;session.cookie_path = /
session.cookie_path = "C:\TEMP"
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0

Thank you,
xsfssg

bradgrafelman
05-24-2007, 07:16 PM
Read up on session.cookie_path (http://www.php.net/manual/en/ref.session.php#ini.session.cookie-path) as your value is incorrect (leaving it the default should work fine).