Dear List -

Thank you for your help in the past. This an update on my session problems.

Here is a simple test program. It never increments the session counter; ie, does not detect that $_SESSION has been set.

<?php  session_start();  ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "";>
<html xmlns="";>


echo "Views=". $_SESSION['views'];

I have no idea what is wrong.

I need to make my session variables work so that I can finish a project.

Help and advice, please.

Ethan Rosenberg

MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)]

I tried your code on my testing computer (PHP 5.2.14) and everything works fine. $_SESSION['views'] is counting up correctly. Maybe a problem with your configuration?

Beste regards.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to