Jump to content

Recommended Posts

I have a website advertising beer products that has age verification page. After visitor confirms that he or she is 21+ years old, $_SESSION variable is set and the visitor is able to view the content of the website. Recently I found that the content from the pages behind age verification page are not scanned by search engine crawlers. It looks like crawlers can't get through age verification page. Does this has something to do with using PHP's $_SESSION variables - should I use different approach for age verification?

I'm so puzzled.

 

Thanks.

It is, as most bots will not care to set cookies and without a cookie they cannot gain access, that and they probably do not wish to confirm their age. You can check the useragent and if the useragent is a known bot (you can find bot agent strings online) allow them access without verification.

It is, as most bots will not care to set cookies and without a cookie they cannot gain access, that and they probably do not wish to confirm their age. You can check the useragent and if the useragent is a known bot (you can find bot agent strings online) allow them access without verification.

 

pretty sure $_SESSION is server side. 

pretty sure $_SESSION is server side. 

 

The data is stored on the server, however, the session ID has to be passed to the server to authenticate a user's access to that data. This is generally set in a cookie and or if it is setup to do so can be appended with GET data incase cookies have been disabled on the user's end.

pretty sure $_SESSION is server side. 

 

The data values are stored on the server, however, the client is given a unique id in the form of a cookie. That's why when you "clean private data" on your web browser, the server can't find your $_SESSION.

 

Web crawlers simply crawl your public pages.  They cannot submit your form; knowing to be the age of 21 or older, or anything fancy like that. I'm not sure what the best solution for you would be.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.