I've received your file.. and check it.. I think you missed something...
Try this one :D

<?
   if($var<>1){
      session_start();
      if(!isset($_SESSION['s_prueba'])){
         $_SESSION['s_prueba']=1;
         echo($_SESSION['s_prueba']);
      }
      
       ?>
      <HTML>
        <HEADER>
            <TITLE>
                Session Test
           </TITLE>
        </HEADER>
      <BODY>
      <FORM ACTION="index.php">
         <INPUT TYPE=HIDDEN NAME=var VALUE=1>
         <INPUT TYPE=SUBMIT VALUE='Aceptar'>
        </FORM>
   <? }
   else{
      session_start();// you forgot to put session_start here...
      echo("Variable s_prueba: ".$_SESSION['s_prueba']);
   } ?>
</BODY>
</HTML>


#Please join Open Community Forum... http://openity.tk  #We're free to
discuss anything....
 
   ---DuFronte--- 
  http://kapsul.org
  No Fuckin' Shits !!

> -----Original Message-----
> From: Sabina Alejandr Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 4:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Session variable problems
> 
> Hello to everybody!!! I have a problem with the sessions
> variable registration. I register a variable with the
> $_SESSION[] array and set it to 1, but when I try to
> access that variable in another script it is emty...
> What's the problem there??
>    Thank you very much in advance!!!
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> 
> Tutopia - Acceso a Internet rápido, fácil y a los mejores precios.
> http://www.tutopia.com
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to