[PHP] session_start() part II

2001-08-13 Thread Aniceto Lopez

ok, let's have this in the right place
in a file named startsesion.php i.e.

session_start();
session_name(mysesion);
session_register(myvar);
$myvar = whatever;

a SID is generated autmaticaly


I've been trying to echo the values of the var defined
and the SID generated in another php file

?php echo ($sesionvar); ? not working
?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working
?php echo ($GLOBALS[$sesionvar]); ? not working
?php echo session_name(); ? not working

?php echo ($PHPSESSID); ? not working

how can I get this values?

thanks, gracias




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session_start() part II

2001-08-13 Thread Renze Munnik

On Mon, Aug 13, 2001 at 04:57:08PM +0200, Aniceto Lopez wrote:
 ok, let's have this in the right place
 in a file named startsesion.php i.e.
 
 session_start();
 session_name(mysesion);
 session_register(myvar);
 $myvar = whatever;
 
 a SID is generated autmaticaly
 
 
 I've been trying to echo the values of the var defined
 and the SID generated in another php file
 
 ?php echo ($sesionvar); ? not working
 ?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working
 ?php echo ($GLOBALS[$sesionvar]); ? not working
 ?php echo session_name(); ? not working
 
 ?php echo ($PHPSESSID); ? not working
 
 how can I get this values?
 
 thanks, gracias


Did you use session_start() in the file where you try to output data
from the session?

-- 

* RzE:

-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session_start() part II

2001-08-13 Thread Richard Baskett

On the second page before the html tag write:

?
  session_name(mysession);
  session_start();
?

and then go ahead and echo your $myvar;



 ok, let's have this in the right place
 in a file named startsesion.php i.e.
 
 session_start();
 session_name(mysesion);
 session_register(myvar);
 $myvar = whatever;
 
 a SID is generated autmaticaly
 
 
 I've been trying to echo the values of the var defined
 and the SID generated in another php file
 
 ?php echo ($sesionvar); ? not working
 ?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working
 ?php echo ($GLOBALS[$sesionvar]); ? not working
 ?php echo session_name(); ? not working
 
 ?php echo ($PHPSESSID); ? not working
 
 how can I get this values?
 
 thanks, gracias
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]