SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    D¨n ╔ideann, Alba
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As far as I understand, it is possible to detect if a user has visited a specific page on a site - you loop through the length of the history object and determine if the index of that page is listed.

    What I want to know, however, is if it's possible to determine if this page was visited during the current session?

    Cheers. Scot-Bot.

  2. #2
    I believe you have my stapler. scrubz's Avatar
    Join Date
    Feb 2001
    Location
    Van down by the river
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, the contents of the history array (the URLs) are not available without the UniversalBrowserRead privilege. Without the UniversalBrowserRead privilege, and in browsers that don't support it, you can only use length, back(), forward(), and go() methods.

    To do what you're trying to do, you could use a cookie that lasts for the length of the session of the user.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    D¨n ╔ideann, Alba
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx Scrubz,

    Someone suggested as much at another forum. And it was moreless what I had in mind anyway.

    Cheers all the same.


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
  •