Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7750533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:18:59+00:00 2026-06-01T11:18:59+00:00

Today I was on Facebook and noticed how they show you a notification when

  • 0

Today I was on Facebook and noticed how they show you a notification when you enter a page that has a new feature, but right after you click close the notification disappear forever. If you do nothing, the notification will always be there, if you click close then you can clear your cache, change computres, logout and login again, and the notification will not be there.

My question is, what is the best way to store that info? How can I store that the user has already seen that notification so I don’t have to show it again?

Cookies?
Sessions?
Databases?
Javascript?

How?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:19:00+00:00Added an answer on June 1, 2026 at 11:19 am
    1. Save the notification in some notification queue (database)
    2. Check whether the notification should be shown (PHP, user visits a site that’s appropriate for the notification).
    3. If the notification is appropriate for the current context, show the notification (PHP + CSS).
    4. If the user dismisses the notification send an AJAX request to clear the notification from the notification queue (JavaScript).

    The notification queue should be saved in a database. Session or cookies aren’t reliable for this.

    However, this is just an assumption and the way I would implement a notification interface, but I guess the Facebook implementation is quite similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just today I noticed on our Wordpress blog that the Facebook iframe is showing
Today I created new application on facebook for my site, but it's giving me
Facebook released the new Timeline for Pages today. Apps installed to pages as tabs
Today I noticed that the code I have been using to display a FBDialog
Since today, I cannot add new apps to Facebook pages. Normally I create an
I've made some facebook pages before, but I'm running in to a problem that
I cloned from https://github.com/facebook/facebook-ios-sdk.git today, and noticed two spots in the code which have
Today, Facebook announced an entirely new way to share user actions on your site
We just switched to new PHP SDK and JS today. but the problem is
Today there are many talks about one page ajax ui (like facebook, twitter etc)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.