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

  • Home
  • SEARCH
  • 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 8811753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:26:33+00:00 2026-06-14T03:26:33+00:00

This is going to be weird sorry and hopefully I’m posting it on the

  • 0

This is going to be weird sorry and hopefully I’m posting it on the right website.

I got this question from an interview.

If I got two servers, one media and the other hosting a website that require user authentication.

The user have to login to the website hosted in one server before accessing the media server. Only authenticated user can access the media and the media server.

I’m not sure how to go about this via PHP? I believe I can do this via sys admin and setting up kerberos server a ticketing system. But for PHP I can only think of maybe some form for RSA public-private key encryption?

Another solutions/hacks was to create some kind of hash and append it to the URL.

Or

Check the user IP? everytime the user access the media file?

Note, the company I applied for, the manager didn’t seem very skill at all. So maybe there is no safe solution?

Note:

I’m pretty sure I can’t use PHP’s session it’s contained in a server? Perhaps a cookie? Is that even safe…

Thank you in advance.

  • 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-06-14T03:26:35+00:00Added an answer on June 14, 2026 at 3:26 am

    Use a common domain for both servers and then perform a domain level authentication with an encrypted cookie where both servers have the same private decryption key.

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

Sidebar

Related Questions

Weird question this, going round in circles. I have 2 pages. Page 1. Has
All right, this one is going to sound very weird and I don't know
I know this question is going to be...weird and...odd. I have programmed stuffs for
Ok I know this is going to sound weird but it is what the
This is going to be a stupid question but I have spent an inordinate
This is going to sound too silly / too basic - sorry about that,
First of all, forgive me if this is a weird question, but it clear
Sorry about the weird question title, but I don't really know what to call
I'm experiencing this weird problem reading data from a table called nodes. Any select
Maybe this is going to sound like a real weird thing I want to

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.