Re: php session in ie

From: Date: Fri, 11 Nov 2005 13:20:08 +0000
Subject: Re: php session in ie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-225607@lists.php.net to get a copy of this message
sunaram patir wrote:
Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. <?php session_start(); $_SESSION['myurl']=$_SERVER['PHP_SELF']; if(!isset($_SESSION['student_username']) && !isset($_SESSION['student_password']))
         header("Location: login.php");
It might not fix your problem but you should exit after location header.

« previous php.general (#225607) next »