file_get_contents (or curl, or fopen) problem with session data

前端 未结 6 1534
情深已故
情深已故 2021-02-11 04:15

i have a page that shows a value from session, lets call it www.domain-a.com/master.php and if i type it directly from the browser, it shows me the session value.

but wh

6条回答
  •  孤街浪徒
    2021-02-11 05:02

    if you have control over the www.domain-a.com/master.php

    then you can have it programmed in a way that you could send it the username in encrypted fashion and like master.php?user=zxcvert2324 or whatever and it would decrypt and know who is sending the request.

    Otherwise you would need to look into CURL and have the session created by first having curl login to that site and then on the next request goto that master.php page.

提交回复
热议问题