I have extracted following session variable from chrome after logging in the targeted website
[
{
"domain": ".upwork.com",
"expirationDate": 1692942673.908315,
"hostOnly": false,
"httpOnly": true,
"name": "__cf_bm",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "6Xg6LNKh5gzG29_pY_AStNSJ4a5738V5BSpRI2yhoUM-1692940874-0-Aa7zNeMmFuACsV74WXmbdy9GoL1MdBC1kk9MYwC5LLlH81GPGIheb/nEfhdeOQiS/P2GviPzL+AwHepgRMMG0P8=",
"id": 1
},
{
"domain": ".upwork.com",
"expirationDate": 1708518327,
"hostOnly": false,
"httpOnly": false,
"name": "__zlcmid",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "1EXlcQ7atJPGm51",
"id": 2
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": true,
"name": "_cfuvid",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": true,
"storeId": "0",
"value": "K_ejN2tRg5zd78rJBPe_YoNkKokAii8fo8buLEkBSzA-1692940874968-0-604800000",
"id": 3
},
{
"domain": ".upwork.com",
"expirationDate": 1700824880,
"hostOnly": false,
"httpOnly": false,
"name": "_cq_duid",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "1.1674305521.FwUG4lNzfwpCB3KY",
"id": 4
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": false,
"name": "_cq_suid",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": true,
"storeId": "0",
"value": "1.1692930012.38ZZx381HQI6Rs82",
"id": 5
},
{
"domain": ".upwork.com",
"expirationDate": 1712980837,
"hostOnly": false,
"httpOnly": false,
"name": "_dpm_id.5831",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "3e1c7c4c-fb29-4436-8691-3023c61c6e54.1674305525.62.1681444837.1681408422.bc7c62a9-a0fc-421c-a655-cd31c9453e4f",
"id": 6
},
{
"domain": ".upwork.com",
"expirationDate": 1700716887,
"hostOnly": false,
"httpOnly": false,
"name": "_fbc",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "fb.1.1689360254799.IwAR3LXkN_CkCtnUGQqCbXjt8Jm_iyUHUiKh6GQ-gKh9CpKWCvkbly4WDkdgA",
"id": 7
},
{
"domain": ".upwork.com",
"expirationDate": 1700716887,
"hostOnly": false,
"httpOnly": false,
"name": "_fbp",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "fb.1.1674305525871.386600257",
"id": 8
},
{
"domain": ".upwork.com",
"expirationDate": 1727500882.879439,
"hostOnly": false,
"httpOnly": false,
"name": "_ga",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "GA1.1.2014375863.1674305522",
"id": 9
},
{
"domain": ".upwork.com",
"expirationDate": 1727500885.012381,
"hostOnly": false,
"httpOnly": false,
"name": "_ga_KSM221PNDX",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "GS1.1.1692939833.124.1.1692940884.0.0.0",
"id": 10
},
{
"domain": ".upwork.com",
"expirationDate": 1698505092,
"hostOnly": false,
"httpOnly": false,
"name": "_gcl_au",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "1.1.561788450.1690729092",
"id": 11
},
{
"domain": ".upwork.com",
"expirationDate": 1693027281,
"hostOnly": false,
"httpOnly": false,
"name": "_gid",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "GA1.2.220349532.1692930012",
"id": 12
},
{
"domain": ".upwork.com",
"expirationDate": 1700716885,
"hostOnly": false,
"httpOnly": false,
"name": "_rdt_uuid",
"path": "/",
"sameSite": "strict",
"secure": true,
"session": false,
"storeId": "0",
"value": "1674305525714.9245b7f5-f542-450b-b69a-a92e1dc8c220",
"id": 13
},
{
"domain": ".upwork.com",
"expirationDate": 1709467098,
"hostOnly": false,
"httpOnly": false,
"name": "_tt_enable_cookie",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "1",
"id": 14
},
{
"domain": ".upwork.com",
"expirationDate": 1709467098,
"hostOnly": false,
"httpOnly": false,
"name": "_ttp",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "d6sR_99UrLqdYmH2p-wuJVeC25p",
"id": 15
},
{
"domain": ".upwork.com",
"expirationDate": 1693027285,
"hostOnly": false,
"httpOnly": false,
"name": "_uetsid",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "ed7e7f2042ed11eeb742cfe584d0ee71",
"id": 16
},
{
"domain": ".upwork.com",
"expirationDate": 1726636885,
"hostOnly": false,
"httpOnly": false,
"name": "_uetvid",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "688ddbd0998a11eda683296533b61699",
"id": 17
},
{
"domain": ".upwork.com",
"expirationDate": 1727500879.201788,
"hostOnly": false,
"httpOnly": false,
"name": "_upw_id.5831",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "94021b7d-55a6-4146-b6ff-ab1759524237.1674305521.116.1692940879.1692932704.6129319c-1bd0-42aa-9839-bb6bf3a68b68.a781d135-b972-486b-a2a5-67285a73481d.3470b2b9-3ae1-4aa5-b4e4-a39db134a499.1692939832647.12",
"id": 18
},
{
"domain": ".upwork.com",
"expirationDate": 1692942679,
"hostOnly": false,
"httpOnly": false,
"name": "_upw_ses.5831",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "*",
"id": 19
},
{
"domain": ".upwork.com",
"expirationDate": 1693016555.755664,
"hostOnly": false,
"httpOnly": true,
"name": "66045945sb",
"path": "/nx/find-work/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "oauth2v2_aef1af7d61467d9a0c8c479371c05f41",
"id": 20
},
{
"domain": ".upwork.com",
"expirationDate": 1693016554.809083,
"hostOnly": false,
"httpOnly": true,
"name": "89323e8bsb",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "oauth2v2_e342513f1f0a80517272050184e101cf",
"id": 21
},
{
"domain": ".upwork.com",
"expirationDate": 1693016507.031632,
"hostOnly": false,
"httpOnly": false,
"name": "asct_vt",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "oauth2v2_e9c4ba670c1541c1abdc8f5f95ead22c",
"id": 22
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": true,
"name": "channel",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "other",
"id": 23
},
{
"domain": ".upwork.com",
"expirationDate": 1695619279.419169,
"hostOnly": false,
"httpOnly": false,
"name": "company_last_accessed",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "d7876819",
"id": 24
},
{
"domain": ".upwork.com",
"expirationDate": 1724466155.803324,
"hostOnly": false,
"httpOnly": true,
"name": "console_user",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "resitdev",
"id": 25
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": false,
"name": "country_code",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": true,
"storeId": "0",
"value": "BD",
"id": 26
},
{
"domain": ".upwork.com",
"expirationDate": 1695619279.419222,
"hostOnly": false,
"httpOnly": false,
"name": "current_organization_uid",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "603751250589462529",
"id": 27
},
{
"domain": ".upwork.com",
"expirationDate": 1693398381.443001,
"hostOnly": false,
"httpOnly": true,
"name": "DA_resitdev",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "4a76dc414346f53c559a86622e53cab675717987140acea8bd5fa98ad1f0d4bc",
"id": 28
},
{
"domain": ".upwork.com",
"expirationDate": 1693016406.444953,
"hostOnly": false,
"httpOnly": true,
"name": "da2ba45asb",
"path": "/nx/find-work/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "oauth2v2_73edcdd6d859ad5fbdde79d8eccc57e0",
"id": 29
},
{
"domain": ".upwork.com",
"expirationDate": 1694123911.910478,
"hostOnly": false,
"httpOnly": true,
"name": "device_view",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "full",
"id": 30
},
{
"domain": ".upwork.com",
"expirationDate": 1727500881,
"hostOnly": false,
"httpOnly": false,
"name": "forterToken",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "080c517749284a7b91679258f46575be_1692940878810_1617_UDF43-m4_14ck",
"id": 31
},
{
"domain": ".upwork.com",
"expirationDate": 1706245317,
"hostOnly": false,
"httpOnly": false,
"name": "fs_uid",
"path": "/",
"sameSite": "strict",
"secure": true,
"session": false,
"storeId": "0",
"value": "#P8EM8#c4fb7e34-b4a5-4100-8613-37aa8cd8d000:d857cdc4-38be-4e64-a9d5-0dd4c4a4dc6d:1688737867144::1#/1706245317",
"id": 32
},
{
"domain": ".upwork.com",
"expirationDate": 1692944153,
"hostOnly": false,
"httpOnly": false,
"name": "ftr_blst_1h",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "1692939833605",
"id": 33
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": false,
"name": "IR_13634",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "1692940885370%7C0%7C1692940885370%7C%7C",
"id": 34
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": false,
"name": "IR_gbd",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "upwork.com",
"id": 35
},
{
"domain": ".upwork.com",
"expirationDate": 1717158495.148964,
"hostOnly": false,
"httpOnly": false,
"name": "lang",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "en",
"id": 36
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": true,
"name": "master_access_token",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "e192ca54.oauth2v2_4713731f27bfe21b72604171902a134a",
"id": 37
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": false,
"name": "oauth2_global_js_token",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "oauth2v2_86163b352156edcebb40bb1b4d1a4e5c",
"id": 38
},
{
"domain": ".upwork.com",
"expirationDate": 1705841537,
"hostOnly": false,
"httpOnly": false,
"name": "OptanonAlertBoxClosed",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "2023-01-21T12:52:17.340Z",
"id": 39
},
{
"domain": ".upwork.com",
"expirationDate": 1724476879,
"hostOnly": false,
"httpOnly": false,
"name": "OptanonConsent",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "isGpcEnabled=0&datestamp=Thu+Aug+24+2023+22%3A21%3A19+GMT-0700+(Pacific+Daylight+Time)&version=202305.1.0&isIABGlobal=false&hosts=&consentId=28dabf33-ec67-49ae-b007-2e2b9698e43c&interactionCount=2&landingPath=NotLandingPage&groups=C0001%3A1%2CC0002%3A1%2CC0003%3A1%2CC0004%3A1&AwaitingReconsent=false&geolocation=BD%3BB&browserGpcFlag=0",
"id": 40
},
{
"domain": ".upwork.com",
"expirationDate": 1702930155.803275,
"hostOnly": false,
"httpOnly": false,
"name": "recognized",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "resitdev",
"id": 41
},
{
"domain": ".upwork.com",
"expirationDate": 1724476879.880994,
"hostOnly": false,
"httpOnly": true,
"name": "spt",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "22d1a780-518b-4dfb-8ec6-d6600f914fcc",
"id": 42
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": true,
"name": "SZ",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "40a4bf68c6dfe8c056d234bce11f9bbd0e1bdb3a1eb690209d3392981f515e9b",
"id": 43
},
{
"domain": ".upwork.com",
"expirationDate": 1696408253.365181,
"hostOnly": false,
"httpOnly": false,
"name": "umq",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "1366",
"id": 44
},
{
"domain": ".upwork.com",
"expirationDate": 1693012955.318926,
"hostOnly": false,
"httpOnly": true,
"name": "user_oauth2_slave_access_token",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "e192ca54.oauth2v2_4713731f27bfe21b72604171902a134a:603751250576879616.oauth2v2_b5784b319d86f44b531568393577534a",
"id": 45
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": true,
"name": "user_uid",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "603751250576879616",
"id": 46
},
{
"domain": ".upwork.com",
"expirationDate": 1724497831.419273,
"hostOnly": false,
"httpOnly": false,
"name": "visitor_id",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "103.4.65.2.1674305519322000",
"id": 47
},
{
"domain": ".upwork.com",
"expirationDate": 1693018626.808871,
"hostOnly": false,
"httpOnly": false,
"name": "visitor_ui_gql_token_jobsearch",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": false,
"storeId": "0",
"value": "oauth2v2_11fa27f814884f04c76a5450be5d308a",
"id": 48
},
{
"domain": ".upwork.com",
"hostOnly": false,
"httpOnly": false,
"name": "XSRF-TOKEN",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": true,
"storeId": "0",
"value": "813b7c08e477a63824bee8acd34a20f9",
"id": 49
},
{
"domain": ".www.upwork.com",
"expirationDate": 1727500886.255566,
"hostOnly": false,
"httpOnly": false,
"name": "_zitok",
"path": "/",
"sameSite": "strict",
"secure": true,
"session": false,
"storeId": "0",
"value": "d8bdb7596aa9766a0e7d1687184862",
"id": 50
},
{
"domain": ".www.upwork.com",
"expirationDate": 1727490107.562829,
"hostOnly": false,
"httpOnly": false,
"name": "G_ENABLED_IDPS",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "google",
"id": 51
},
{
"domain": "www.upwork.com",
"expirationDate": 1693031043.893552,
"hostOnly": true,
"httpOnly": true,
"name": "__cflb",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "02DiuEXPXZVk436fJfSVuuwDqLqkhavJaZ732o6kv5zmR",
"id": 52
},
{
"domain": "www.upwork.com",
"expirationDate": 1705841525,
"hostOnly": true,
"httpOnly": false,
"name": "__pdst",
"path": "/",
"sameSite": "strict",
"secure": false,
"session": false,
"storeId": "0",
"value": "70616ed1ba66430b8d8f4ff72b9445a3",
"id": 53
},
{
"domain": "www.upwork.com",
"expirationDate": 1727492353.908821,
"hostOnly": true,
"httpOnly": false,
"name": "_sp_id.2a16",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "94021b7d-55a6-4146-b6ff-ab1759524237.1674305521.83.1692932354.1689874654.a4387952-a617-4288-93af-d282609b1805",
"id": 54
},
{
"domain": "www.upwork.com",
"expirationDate": 1693545679.880776,
"hostOnly": true,
"httpOnly": false,
"name": "AWSALB",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "YlxinPcCKicMSuyM7zgVRePEnmdGF9kNi1Z1BM30xNHrUGE3oVYSQJDJwoBcAu2T3wKa9Xlj24TRdjo3ZmEuwykik8ETLSRxkmJ5JO0309qccvzlrkcuBqYVLTeK",
"id": 55
},
{
"domain": "www.upwork.com",
"expirationDate": 1693545679.880936,
"hostOnly": true,
"httpOnly": false,
"name": "AWSALBCORS",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": "0",
"value": "YlxinPcCKicMSuyM7zgVRePEnmdGF9kNi1Z1BM30xNHrUGE3oVYSQJDJwoBcAu2T3wKa9Xlj24TRdjo3ZmEuwykik8ETLSRxkmJ5JO0309qccvzlrkcuBqYVLTeK",
"id": 56
},
{
"domain": "www.upwork.com",
"hostOnly": true,
"httpOnly": false,
"name": "cookie_domain",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": true,
"storeId": "0",
"value": ".upwork.com",
"id": 57
},
{
"domain": "www.upwork.com",
"hostOnly": true,
"httpOnly": false,
"name": "cookie_prefix",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": true,
"storeId": "0",
"value": "",
"id": 58
},
{
"domain": "www.upwork.com",
"hostOnly": true,
"httpOnly": false,
"name": "enabled_ff",
"path": "/",
"sameSite": "unspecified",
"secure": true,
"session": true,
"storeId": "0",
"value": "CI11132Air2Dot75,!RMTAir3Talent,!air2Dot76Qt,!CI12577UniversalSearch,!pxFAA3,!CI10857Air3Dot0,!JPAir3,i18nOn,TONB2256Air3Migration,!SSINavUser,OTBnrOn,CI9570Air2Dot5,!CI10270Air2Dot5QTAllocations,!pxGPA3,!FLSAir3,air2Dot76,pxBPA3,!pxWTA3,!TONB3476Air3Migration,!MP16400Air3Migration",
"id": 59
},
{
"domain": "www.upwork.com",
"hostOnly": true,
"httpOnly": false,
"name": "FindWorkHome:freelancerMenuSpacing",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "292px",
"id": 60
},
{
"domain": "www.upwork.com",
"hostOnly": true,
"httpOnly": false,
"name": "FindWorkHome:hasInterviewsOrOffers",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": true,
"storeId": "0",
"value": "0",
"id": 61
},
{
"domain": "www.upwork.com",
"expirationDate": 1715359387.831683,
"hostOnly": true,
"httpOnly": false,
"name": "lang",
"path": "/",
"sameSite": "lax",
"secure": false,
"session": false,
"storeId": "0",
"value": "en",
"id": 62
},
{
"domain": "www.upwork.com",
"expirationDate": 1693016415,
"hostOnly": true,
"httpOnly": false,
"name": "ln_or",
"path": "/",
"sameSite": "unspecified",
"secure": false,
"session": false,
"storeId": "0",
"value": "eyI2MzgxNCI6ImQifQ%3D%3D",
"id": 63
}
]
Now I want to scarpe content from the website using PHP. What code can I use and how?