Running winNT4.0sp6a, apache1.3.20, php4.1.1(as a module) I've been able to call a function from first .php page that sets a session variable (verified with an echo). I used $_SESSION['BreadCrumbCounter'] = 0;
then from that page I call a second .php page via <a href="/eduEIS/Components/php/mainPage.php?sid=<?php echo $PHPSESSID?>"> I also tried <a href="/eduEIS/Components/php/mainPage.php?<?=SID?>"> In second page, the session variable comes back as not set. I used if (!isset($_SESSION['BreadCrumbCounter'])) {... I set session.auto_start to ON, set register globals to off. What I took that doc as saying is in 4.1.1, with auto_start on, I could use $_SESSION[] without the need to start a session and register session variables. What am I missing? I noticed the SID is missing when using that href. below are my php.ini settings. register_globals Off Off session.use_trans_sid 1 1 session Session Support enabled Directive Local Value Master Value session.auto_start On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /tmp /tmp session.serialize_handler php php session.use_cookies Off Off -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php