Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2010
    Location
    New York City
    Posts
    9
    Member #
    24916
    I have a JS Age Verification script written up and it works great. Now, this may or may not be a JS question, but how would I have that code cover the entire website and not just the home page? In other words, if someone has a direct link to the about page...I'd like them to be required to verify their age and then go to the about page...not just link directly to it. Any thoughts?

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Unless you're prepared to use Javascript cookies, then it's not a JS question. You also shouldn't be using JS for something like age verification anyway.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member MartyBoi's Avatar
    Join Date
    Sep 2011
    Location
    Saginaw MI
    Posts
    27
    Member #
    29177
    Quote Originally Posted by TheGAME1264, post: 196424
    Unless you're prepared to use Javascript cookies, then it's not a JS question. You also shouldn't be using JS for something like age verification anyway.
    Just curious, what should one use for " Age Verification "?

  5. #4
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    A scripting language like asp, asp.net or php should always be used for something like this. Embed the script to set session variables on every page of the site, you can control every page from one small piece of script, directing every new request to the verification page, no matter what the user request.

    Once the session variable has been set, the user is allowed to view anything until the session is expired or the browser is closed.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

add age 21 verification to website

,

age verification javascript

,

javascript age verification

,

website age 21 verification tool

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:17 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com