Jump to content

Help?


Javis

Recommended Posts

How would i make it so that when they type in my site name mysite.com for it to bring them to my tos and not the actaull site? My tos is a page which i made for them to have to read through the rules and agree to them before they can enter the site.

 

Is that possible? or would i have to tell every one to go to mysite.com/tos?

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/89752-help/
Share on other sites

You can do it with cookies or session variables. When the person agrees to your terms, a session variable goes on their computer. Have each page check for the existence of the session variable, and if it doesn't exist, forward them to the TOS. If it does exist, let them see the page.

 

Depending on your reasoning behind having them agree to the TOS, you may want to record their ISP addresses in a database when they agree, to have proof for the future if you may need it.

Link to comment
https://forums.phpfreaks.com/topic/89752-help/#findComment-459936
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.