Hi guys,
I'm Hanafiah
I got some problem with the session. I already setup php4 to run under windows 98 and pws4. when I using simple php script it run well but when I start using session_start(); or session_register(); the browser will display error "page cannot be display" or "sever return an invalid command". Although the browser display error when load the file the sessionid still created and stored at c:\tmp
I follow the sample that Mattias Nilsson put at page "Session Management in PHP4: A followup".
here I atttach the sample.php file for your review.Here I attach the part of my php.ini that I think You all might want to see
_____________php.ini___________
;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
variables_order = "GPCS"
register_globals = On
register_argc_argv = Off
track_vars = On
gpc_order = "GPC"
[Session]
session.save_handler = files
session.save_path = C:\tmp session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path =
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check = 1 session.entropy_length = 0
session.entropy_file =
; session.entropy_length = 16
; session.entropy_file = /dev/urandom
session.cache_limiter = private session.cache_expire = 180
______________end_______________
____sample.php_________
<script language="php">
session_start();
//session_register($count);
$count++;
</script>
This is the test page<p>
You have seen this page for the
<script language="php">
echo $count
</script>
times<p>
__end sample.php_____