| cookie authorization to restricted folder based on timestamp [message #1912] |
Thu, 08 July 2010 17:18 |
marsson Messages: 1 Registered: July 2010 |
|

|
|
Hello everyone...
I have a doubt on creating a .htaccess
here is my Idea:
I want only people accessing from one of my internal pages to be able to access the contents on the restricted folder.
that page generates a cookie with its value being the current timestamp +2 mins.
what I need to do, is for .htaccess to check the value of that cookie, compare it with the TIME_EPOCH, and if it the cookie timestamp is bigger than the current one, allow the access to the folder's content.
Is it possible?
how should I approach that?
Best Regards.
Marcelo Marsson
|
|
|