--- [EMAIL PROTECTED] wrote:
> how can I call a register session from within a
> class and make sure that the session is allready
> active and if not just print a warning.

This is closely related; you can check to see whether
headers have already been sent:

http://www.php.net/manual/en/function.headers-sent.php

If they have not, it does not matter if you start the
session or use an existing one.

You can probably use session_name() to check for an
existing session. It is worth experimenting with anyway.

Chris

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

Reply via email to