session problem

From: Date: Wed, 04 Feb 2004 12:59:11 +0000
Subject: session problem
Groups: php.general 
Request: Send a blank email to php-general+get-176784@lists.php.net to get a copy of this message
Hi, I'm working on a multi-langage website and i got problem with a fonction which destroy my session :-( I got a file which change my langage like this : /********************************************/ session_start(); if ($_POST['langue']=="us") $_SESSION['language']="us"; else if ($_POST['langue']=="fr") $_SESSION['language']="fr"; header("Location: http://".$_SERVER['HTTP_HOST'].$_POST['page_name']); /*********************************************/ When the header function is called I'm correctly redirected on the right page but all my session variables are destroyed. Can you please help me resolving this problem. I've tried directly entering the path for redirection like that: header("Location: index.php"); but it's the same problem. Thanks in advance, ______________________________________ MARC SERRA MASTER Commerce Electronique IUP GMI AVIGNON FRANCE

« previous php.general (#176784) next »