This is My PHP Code:
<?php
if (session_id() == '') {
session_start();
}
echo session_id();
?>
When I request this code with the browser, the code works properly and there is no problem.
Code result in browser:
First time result:
// 6511A321213321DF151016C
Second time result:
// 6511A321213321DF151016C
But when I request it using Python, the IDs are different. This is my python Code:
from requests import *
for i in range(5):
Get_Request = get('http://example.com/test.php')
Page_Content = Get_Request.text
print(Page_Content)
But the result in Python
Code result in python:
First time result:
// F695A321213321DF151AS65
Second time result:
// AB653132121D65A66265456