python - Why are the IDs different in each request?
Get the solution ↓↓↓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
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function illuminate\encryption\openssl_cipher_iv_length()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.