SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    St Petersburg, Russia
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    controling the time when a link is considered visited

    Is it possible to control (using either php or javascript), how long the link to the page will be considered visited by the browser. For example, if my site contents is updated every 3 days, I would want the page to be considered visited only during the time whyle it remains unchanged (3 days). And after that it should be displayed as unvisited link.

  2. #2
    SitePoint Enthusiast Redprince's Avatar
    Join Date
    May 2004
    Location
    Salzgitter, Lower Saxony, Germany
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems impossible. In my opinion the browsers searches in the cache/history given for a visit and then decides what to do. No way for you to change that.
    I am not part of the allesburner. I am the allesburner.

  3. #3
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    St Petersburg, Russia
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe sending some header? I now that there is header that controls expire date. Yet I tried all headers that I new, and nothing happened.
    I believe, that controlling visited/unvisited links is very important in the situation I described. So there should be some way.

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    I think there is a no-cache header but I think that it is specifically for cookies/ sessions.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  5. #5
    Dinah-Moe Humm mudshark's Avatar
    Join Date
    Dec 2003
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suppose you could achieve this by setting a cookie, and then switching css-statements according to what you retrieve from it? Seems a little over the top though.

  6. #6
    SitePoint Addict
    Join Date
    Nov 2004
    Location
    St Petersburg, Russia
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believed that I already tested no-cach header. But I will test it again.

    As for cookies. Yes, it is not bad idea. You can save URLs in a cookie. Then use javascript to go through the all the links and set colors. And if user has firewall or smth, than the behavior of the links will be browser default.

    Though I hoped that there exists some header that I dont know about.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •