Jump to content

Recommended Posts

How you implement this feature really depends upon your website architecture. Do you have an off the shelf cms app, framework etc..

 

When you say a "user" do you mean someone who logged into your site, and you have a database of user data to pull from? 

 

Perhaps you just want any visitor to have that option?

If that's the case then you need to determine how you want to approach the saving of that data and how it relates to the visitor. IE, do you want to create a database of user data and use the visitors Ip address as it's unique id? Maybe a cookie based solution would work better for you, this allows the data to be saved in the users browser for a variable length of time.

 

Once you determine how and where you can or want to save that type of data for the user, you have to determine how a page is displayed and how do you want the user experience.

Do you want the user to be redirected to another page if they land on the page they didn't want again? Do you just need to hide links to the pages? Do you want to alert the user they choose not to see that page, before or after you redirect them?

 

Keep in mind too, that if you allow a user to set a preference like that, you should have a way for them to change that if they need to.

 

 

Good luck

Link to comment
https://forums.phpfreaks.com/topic/194269-possible/#findComment-1022134
Share on other sites

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.