Session variables

From: Date: Mon, 07 Apr 2003 02:39:48 +0000
Subject: Session variables
Groups: php.db 
Request: Send a blank email to php-db+get-26876@lists.php.net to get a copy of this message
I am using session variables throughout an application, and every time I try to log in as someone else after the first time I've logged in, it uses the userid of the first person that logged in. I know the session has to be destroyed or something, so I wanted to make a logoff page, but it is not working. I'm getting an Internal Server Error. Here is my code for logoff.php: <?php session_start(); session_unset(); session_destroy(); setcookie("ses_username","","","/"); include('logoff.html'); exit; ?> Does anyone know what I am doing wrong? Thank you, Alexa

« previous php.db (#26876) next »