note 72642 deleted from ref.session by colder

From: Date: Sat, 27 Jan 2007 13:45:12 +0000
Subject: note 72642 deleted from ref.session by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122263@lists.php.net to get a copy of this message
Note Submitter: ---- Hi I need Your help with session. I've created 2 files to generate charts. In first there is look of page, in second .png file is generated. I would like to setup some values in first and pass it into the second by session In first file: <? session_start(); if (!isset($_SESSION['chart'])) { $_SESSION['chart'] = 0; } else { $_SESSION['chart']++; } ?> (...) <img src="./chart.php"> (...) and it works, but in second(chart.php) I can't receive this data. When i try: <? if (isset($_SESSION['chart'])) ?> I get false. If I've added <?session_start();?> at the beginnig, SECOND file with session data is created. How could I handle it?

« previous php.notes (#122263) next »