Are there specific PHP functions or settings in php.ini that can help manage session IDs for different domains?

When managing session IDs for different domains in PHP, it is important to ensure that sessions are not shared across domains to maintain security and privacy. One way to achieve this is by setting the session.cookie_domain parameter in the php.ini file to the specific domain for which the session should be valid. This will restrict the session to only that domain and prevent it from being accessible across different domains.

// Set the session cookie domain in php.ini
session.cookie_domain = ".example.com";