I have a php login scripts and the page is secured. But my images on the page can be viewed if you know the direct url. How can i make it to where only logged in users can view images?
reedd5404
0
Newbie Poster
Recommended Answers
Jump to PostYou could place the image data into a php file (image header) and link to that. THe php file could check to see if the user was logged in and if not, display a default image.
Pseudo-ish code:
For image1.php
Check if logged in
IF LOGGED IN:
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.