Re: newbie: using sessions
| From: | Martín Marqués | Date: | Tue, 12 Mar 2002 10:40:01 +0000 |
| Subject: | Re: newbie: using sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88175@lists.php.net to get a copy of this message | ||
On Mar 12 Mar 2002 06:28, you wrote:
> Hi i can't get the session variables working.
>
> When I get something like
> $_SESSION['Login']=$HTTP_POST_VARS['login'];
> on the first page, and i go with a link to an other php page.
> When then try to get $_SESSION['Login'] again it is empty.
>
> How comes?
How are you using you're session? Are you registering the variable for later
use?
session_start();
session_register("login");
$login = $HTTP_POST_VARS['login'];
That's it!
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------