'How to fix session_id() always changed every request in ajax

It is safe to use session_id with a custom string? Because my session_id generated a different random token after I reload my php project that cause session won't store

<?php
   session_id('r153vde76mulguktfamh9tsprk');
   session_start();
?>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source