Securing image or document file
Posted: Thu Jun 30, 2011 4:15 am
Hi guys,
I need to secure file inside a folder where user need to login first then they can download or view the file. For example, if user directly visit
http://www.ifnoresponse.com/upload/image1.jpg
if she has not login yet, system will redirect her to login page.
Just like if someone send you a file in gmail, you will be able to download or view it if your gmail session still alive. Else if you direct access that file without login to your gmail, gmail will redierct you to login page.
Any advice is appreciated
regards,
Mark Thien
I need to secure file inside a folder where user need to login first then they can download or view the file. For example, if user directly visit
http://www.ifnoresponse.com/upload/image1.jpg
if she has not login yet, system will redirect her to login page.
Just like if someone send you a file in gmail, you will be able to download or view it if your gmail session still alive. Else if you direct access that file without login to your gmail, gmail will redierct you to login page.
Any advice is appreciated
regards,
Mark Thien