|
-
Jul 28th, 2008, 11:52 PM
#1
Thread Starter
Lively Member
[RESOLVED] prevent user from accessing *.htm files with lack of php cookie?
Hello all.
Is it possible to "block" users from accessing *.htm files if the user does not have a cookie set by setcookie()?
The only thing I can think of is to use JavaScript to check for the cookie's existence, then redirect upon failure.
Any other ideas?
Many thanks.
Last edited by solitario; Jul 29th, 2008 at 07:49 AM.
Reason: resolved
-
Jul 29th, 2008, 03:53 AM
#2
Re: prevent user from accessing *.htm files with lack of php cookie?
As HTML pages are static, the only option open to you would be the use of server side includes in Apache. I would suggest you convert the page in question to a PHP script and use PHP to check for the cookie and redirect the page when it does not exist.
Using Javascript is not an option as the user can easily by-pass it by disabling Javascript.
-
Jul 29th, 2008, 07:49 AM
#3
Thread Starter
Lively Member
Re: prevent user from accessing *.htm files with lack of php cookie?
That's what I thought. Thanks again visualAd.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|