Reply to session data getting lost

Your name:

Reply:


Posted by jkmambo on 11/24/05 08:04

Session data is getting lost in PHP version 4.4.1 which used to work in
version 4.3.3

The code is similar to the one below

Assume the file is called count.php which requires a parameter
productid;

session_start();
if (!isset($_SESSION['countAccess'])) $_SESSION['countAccess'] = 0;
else $_SESSION['countAccess']++;

echo $_SESSION['countAccess'];


if I call the script with a parameter for example
count.php?productid=78

when I press refresh button $_SESSION['countAccess'] does not get
incremented but if I call it without the parameter,
$_SESSION['countAccess'] gets incremented.
I am also losing data if I call another script.

Does anyone know what's going on here?

Thank you

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация