Re: [PHP] session_register() twice?

2002-04-26 Thread Sascha Schumann

On Fri, 26 Apr 2002, Javier wrote:

 What happens if I call session_start() twice?
 Does it creates another session?

It does nothing.

if (PS(session_status) != php_session_none)
return;

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




Re: [PHP] session_register() twice?

2002-04-26 Thread Javier

I've got the index.php page that checks if there's a session created.
If it is not, it creates a new one.
I print the session_id;
Then I go through a link to a login.php page there I print the 
session_id and its a different one.

What could be the problem?


Sascha Schumann wrote:
 On Fri, 26 Apr 2002, Javier wrote:
 
 
What happens if I call session_start() twice?
Does it creates another session?
 
 
 It does nothing.
 
 if (PS(session_status) != php_session_none)
 return;
 
 - Sascha Experience IRCG
   http://schumann.cx/http://schumann.cx/ircg
 



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