Dear Srs,
A few days ago, I upgraded my PHP installation from 3.0.18 to 4.0.6 version.
I tested the new version with the following script :

<html>
<head>
<title>Links</title>
</head>
<?
session_cache_limiter('public');
$cc = session_start();
session_register("cont");
$cont = session_id();
$ssid = session_id();
echo "Sessão01 : " . $ssid;
session_destroy();
?>
<body>
</body>
</html>

When I run this script, I'm receiving back the following warning :

Warning: Cannot send session cache limiter - headers already sent (output started at 
D:\Websites\Php\teste2_sess.php:6) in D:\Websites\Php\teste2_sessphp on line 8
Sessão01 : cfe7f6288656774275396fcaebf9754e

My environment is :
- OS : Windows NT 4.0
- PHP version : 4.0.6
- Web Server : IIS 4.0

Part of php.ini configuration is :

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
error_reporting  =  E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
track_errors = Off
;error_prepend_string = "<font color=ff0000>"
;error_append_string = "</font>"
;error_log = filename
;error_log = syslog
warn_plus_overloading = Off

[Session]
session.save_handler = files
session.save_path = C:/Temp/php
session.use_cookies = 0
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 20
session.gc_maxlifetime = 1440
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 = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

Thanks.
Celso G. Corrêa

--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to