Hi,
Since my web host upgrade the php version from 4.0.6 to 4.2.3 it's a real nightmare.
I upgrade my local machine with php 4.2.3, fixed several things (...) and finally everything works properly.
But i got a problem concerning session only with my web host (on the local machine it's ok) ....
In fact after searching and make lots of correction i've found that the simplest thing such as :
"page1.php"
session_start();
$_SESSION['test'] = 1;
echo "<a href=\"page2.php?PHPSESSID=".$PHPSESSID."\">Go to page 2</a>";
"page2.php"
session_start();
if (!empty($SESSION['test'])) {
echo 'it worked!';
print_r($SESSION);
} else {
echo 'it did not work 🙁';
doesn't work every time !!!! 😕
after making many back/retry :
Sometimes i've got a blank screen on page2 with the HTML code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
And sometime i've got the message " it did not work " , and sometimes it works fine (the most of time i admit)....
And sometime even the page1.php does not appear at all !!! and i've got again the html code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
I am very puzzled with this because i've spent lots of time trying to fix my code believing something went wrong but now i think maybe it's just impossible to work ?!
Does this problem mean something to you ?
PLEASE HELP me because i am so confuse with this !!
Here is an extract of my php.ini web host setting :
OS : Windows NT 5.0 build 2195
SERVER_SOFTWARE : WebSite/3.1.11
Thread Safety enabled
PHP Core
allow_call_time_pass_reference On
allow_url_fopen 1
always_populate_raw_post_data 0
arg_separator.input &
arg_separator.output &
asp_tags Off
auto_append_file no value
auto_prepend_file no value
browscap no value
default_charset no value
default_mimetype text/html
define_syslog_variables Off
disable_functions no value
display_errors Off
display_startup_errors Off
doc_root no value
enable_dl On
error_append_string no value
error_prepend_string no value
error_reporting 81
expose_php On
file_uploads 1
gpc_order GPC
html_errors On
ignore_user_abort Off
implicit_flush Off
log_errors On
magic_quotes_gpc On
magic_quotes_runtime Off
magic_quotes_sybase Off
max_execution_time 20
open_basedir no value
output_buffering no value
output_handler no value
post_max_size 8M
precision 12
register_argc_argv On
register_globals On
safe_mode Off
safe_mode_exec_dir no value
safe_mode_gid Off
safe_mode_include_dir no value
sendmail_from me@localhost.com
sendmail_path no value
short_open_tag On
sql.safe_mode Off
track_errors Off
unserialize_callback_func no value
upload_max_filesize 2M
upload_tmp_dir no value
user_dir no value
variables_order EGPCS
xmlrpc_error_number 0
xmlrpc_errors Off
y2k_compliance On
standard
assert.active 1
assert.bail 0
assert.callback no value
assert.quiet_eval 0
assert.warning 1
safe_mode_allowed_env_vars PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset
session
Session Support enabled
session.auto_start On
session.cache_expire 180
session.cache_limiter nocache
session.cookie_domain session.cookie_lifetime 0
session.cookie_secure Off
session.entropy_file no value
session.entropy_length 0
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path ****
session.serialize_handler php
session.use_cookies On
session.use_trans_sid 0