Home > Archive > PHP Programming > September 2004 > Sessions
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Michael Satterwhite 2004-09-26, 8:55 pm |
| PHP 4.3.4 is distributed with SuSE 9.1. Session support is supposed to be
default in PHP 4+ ... but
In a script I'm writing, my page starts with the lines
<?php
session_start();
$_SESSION['curKey'] = 0;
?>
......
When the page is loaded, I get the error message
"Fatal error: Call to undefined function: session_start()
in /srv/www/htdocs/lookups/index.php on line 2"
which corresponds to the call to session_start(). session.auto_start = 0 in
my php.ini, but an explicit call to session_start() should start the
session according to the documentation, so I don't see anything wrong.
Anybody have an idea of what I'm missing?
tia
---Michael
| |
| Alvaro G Vicario 2004-09-27, 8:55 am |
| *** Michael Satterwhite wrote/escribió (Sun, 26 Sep 2004 22:18:07 GMT):
> "Fatal error: Call to undefined function: session_start()
> in /srv/www/htdocs/lookups/index.php on line 2"
Create a PHP file with a call to phpinfo() and check the output. You should
have:
session
Session Support enabled
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
|
|
|
|
|