*use $HTTP_SESSION_VARS [] instead of $_SESSION[] * Upgraded to 4.2.2 or later, i also had difficulty running sessions on 4.1.1
regds, -----Original Message----- From: venu gopal [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 19:00 To: [EMAIL PROTECTED] Subject: basic sessions... I am developing an intranet website using programming tool - php 4.1.1 running as a module, HTML, Javascript. webserver - apache 1.3.x. browser - Internet Explorer 5.0 / Netscape 6.2 platform - Windows 2000. I am having problems with sessions. i am not able to understand what's wrong with following fragment of code. first.php <?php session_start(); if(!isset($_SESSION['count'])) $_SESSION['count']=0; else $_SESSION['count']++; ?> I am having a link to next.php from this page. next.php <?php if(!isset($_SESSION['count'])) echo "variable not set"; else echo $_SESSION['count']; ?> the output of the above code in next.php when loaded is "variable not set" why is it so, do i need to make any changes in the php.ini or is it something to do with the browser. I had browsed through the archive and refered "[PHP-WIN] newbie Basic sessions..." but it didn't help me much. I also tried with session.use_tras_sid "On" and "Off" even that didn't work. kindly guide me in this regard. following are the session settings in php.ini. register_globals = Off session.save_handler = files session.save_path = c:/temp session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = c:/cookies session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_maxlifetime = 1440 session.referer_check = session.entropy_length = 0 session.entropy_file = 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" venugopal Advanced Micronic Devices Ltd. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php