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 9273307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:04:59+00:00 2026-06-18T16:04:59+00:00

I have a cookie set with expiry of 3 mins, this will allow a

  • 0

I have a cookie set with expiry of 3 mins, this will allow a user to navigate through the site for 3 mins before seeing an advert. They will see the ad if cookie is not present on next page they visit and the cookie will be reset once the ad is closed.

However a consequence of this is that as soon as the website is visited the ad will show, how can I stop the ad showing on the first page a visitor lands on?

  • 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-18T16:05:00+00:00Added an answer on June 18, 2026 at 4:05 pm

    If you only want to use cookies: You can add another cookie to the site, set it to expire after the browser is closed, and only show the ad if this cookie is set but the other is not.

    Alternatively use session like methods, like storing in a session the time the user has entered the page, and calculate when to show the ad from that time. This also means you have to check for the ad showing an other way (checking the value of the session variable), not via cookies.

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

Sidebar

Related Questions

I have this code to set up and check a cookie, and before a
I am developing w php web site. Here I have set a php cookie
I have been trying like this - // ================ // = set a Cookie
On pageload of Home page, I have set a cookie like this:- if (abc
I have a cookie which is set when a user accesses the page /auth/
I have set a cookie in my jsp page say(A). and set its path
I have used the following code to set cookie and then redirect. String level=(String)
hello, how can i set cookies like 'last_visit' if the user have more than
I have set my cookie in PHP using the following: setcookie(id, 100, time()+100000, /AP,
I have two simple functions to set and clear cookie. private function _setCookie($value =

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.