Secure Files per User

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Secure Files per User

Post by tecktalkcm0391 »

How can I prevent a user from accessing another user's images/files... even if they get the URL correct for the image files of the filename+date md5ed


Edit: Just thought of it... have files served like images.php?imageID=82849 and check for session with correct username before serving that image.... am I right? open to any ideas/suggestions though
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Secure Files per User

Post by Mordred »

Yep, you got it. The term is "authorization".
Post Reply