Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6335739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:54:54+00:00 2026-05-24T18:54:54+00:00

I know that if the cookie was made from my domain I can just

  • 0

I know that if the cookie was made from my domain I can just use something like this

<html>
<body>

<?php
if (isset($_COOKIE["user"]))
  echo "Welcome " . $_COOKIE["user"] . "!<br />";
else
  echo "Welcome guest!<br />";
?>

</body>
</html>

what if the cookie was from different domain and I don’t know what is the cookie name or don’t have control on it lets assume that website http://cookieprovider.com if you visit you will get a cookie store for one week then if the visitors comes back to my website and I want to see if they have the cookie set on their browser or not if not send them back or give them a message warn that the cookie isn’t set yet and need to go back again to refresh or whatever and when they have the cookie will give them a welcome message and so on.

will this be possible?

if not so that I can see other solution just wanted to make sure.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:54:55+00:00Added an answer on May 24, 2026 at 6:54 pm

    Ali,

    For obvious security reasons, you can’t read a cookie that belongs to another domain. You can do it across sub-domains though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Due to weird domain/subdomain cookie issues that I'm getting, I'd like to know how
My questions is about redirection from PHP . I know that we can redirect
I know that I can set expiration date for a cookie, but can I
I just started with OOP programming in PHP and I have made a cookie
I know that you can't edit incoming cookies. I have a cookie that I
I know that in order to download a cookie associated with an account using
I know that you cannot delete a cookie set by another server in javascript.
I know that this sort of question has been asked here before, but still
I know that when I use range([start], stop[, step]) or slice([start], stop[, step]) ,
I know that this line of code will make the cell text-wrap: $objPHPExcel->getActiveSheet()->getStyle('D1')->getAlignment()->setWrapText(true); 'D1'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.