Jump to content

possible?


codrgii

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

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.