Argh, I'm using the below coding, and it's supposed to increase from 1, to 2, and then to 3, and so on, right?
Well it does, but only on SOME OF MY BROWSERS! And that makes it really irritating to test, because I don't like using Netscape or AOL's browser, which it works for. And it's nice to know that my coding works on most browsers, not just some.
<?php
error_reporting(E_ALL);
session_start();
isset($_SESSION['count']) ? $_SESSION['count']++ : $_SESSION['count'] = 1;
echo $_SESSION['count'];
?>
<br><br><br><br><br>
<a href=test.php>Increase the number!</a>
BTW, This is the phpinfo...
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 3600 3600
session.cookie_path no value no value
session.cookie_secure Off Off
session.entropy_file /dev/urandom /dev/urandom
session.entropy_length 16 16
session.gc_divisor 100 100
session.gc_maxlifetime 1200 1200
session.gc_probability 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /data/session /data/session
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off