Topic: Pre page load warning


I have a site which i want to allow adult themed content, however i want there to be a pre page load warning displayed allowing the person to choose weather or not they want to see the content.

I have a flag "Adult" in the db which identifies the content.

thanks Customizable RSS Aggregation

Re: Pre page load warning

Quick update, i mean like the warning where it then redirects you to the page you want. Customizable RSS Aggregation

Re: Pre page load warning

Use sessions.

Before each page load, check to see if the page's "adult" status is true. If so, check if the user has a session called "allow_adult". If the session doesn't exist, render the pre page and have it show a submit button. Clicking the submit button would create the session as well as redirect them to the page they were wanting to load.

Overall, a pretty simple process. That's how I would do it

Last edited by wesf90 (2012-06-01 16:24:48)

Remember to edit your topic title and add "[SOLVED]" if your question has been answered!

Follow me!

Re: Pre page load warning

Thanks, that's what i was thinking, was unsure if it was the best approach.

Dump_Weed Customizable RSS Aggregation