-
1. Re: How to force a user to agree to something before granting access?
Lon Winters Oct 20, 2011 11:06 AM (in response to TCarp)Pretty much. Include ans Access Level field in your database, and update that value when the user performs the agreement. It can be a checkbox or radio button value, or set in a hidden field where the message is, "by clicking submit, you agree.. "
Then use page restrictions on the pages that require a certain access level that checks the user name and access level, both which are set as session variables when the user logs in.
-
2. Re: How to force a user to agree to something before granting access?
TCarp Oct 23, 2011 7:06 PM (in response to Lon Winters)Hi Lon
What I'm looking for is a little different. There's not going to be a user name (i.e. no log on). What I want is for any user to first agree to some conditions before allowing access to a section of the site.
That section contains some map images that people can download. (If you recall, this is the site you helped me with master/detail). I want to make sure a user acknowledges some caveats (legal stuff).
I want the "authorization" to persist as long as they're on the site even if they leave the maps area to look at other pages (that are not controlled).
I don't understand php and web sessions well enough to know how variables are set to be accessible across pages. I also don't understand when a variable is reset as a user navigates away from a site. What I mean is, for example, if a user comes to the site and wants to access the maps pages they will have to acknowledge the caveats. I want that authorization to persist as long as their browser "session" continues. Can I do that?
I've done some reading on sessions but I don't know if that's the right approach since the user may navigate (via url) directly to the maps page(s). In a way what I want is to check on a maps page whether the user has acknowledged the caveats. If not, I want to force them to that page.

