ID: 16355
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Session related
Operating System: Linux Redhat 7.1
PHP Version: 4.1.2
New Comment:
Fix my code means to remove the parameter. My current code is:
session_register("userid");
if ($userid!="") {
my page code
}else
session_destroy("userid");
Should I leave session_destroy void?
Thanks for your help
Previous Comments:
------------------------------------------------------------------------
[2002-04-02 09:34:12] [EMAIL PROTECTED]
That's because you're passing parameter(s) to session_destroy. Old PHP
didn't check pramater is passed or not even if it should check.
You have to fix your code.
------------------------------------------------------------------------
[2002-03-29 17:57:43] [EMAIL PROTECTED]
I use apache 1.3.24/ php 4.1.2 /firebird with Red Hat 7.1
It used to work properly with php 4.0.5. When I installed php 4.1.2 I
get the following error message:
Wrong parameter count for session_destroy() and the session is not
destroied
Configure command: ./configure --with-interbase=/opt/interbase
--with-apache=../apache_1.4.2 --enable-track-vars
You can check it at www.g2k.es/factory/index.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16355&edit=1