1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Popup just before a session expires?

Discussion in 'PHP' started by dave487, Oct 6, 2005.

  1. #1
    Overture uses a script that shows a popup window to warn you a couple of minutes before your session is due to expire.

    Anybody know how this is done or had any experience of it?
     
    dave487, Oct 6, 2005 IP
  2. Dread

    Dread Peon

    Messages:
    323
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont *know* how this is done and i havent seen it done because i dont use overture but i can take a guess. There are multiple ways of doing it, the simpliest way i can think of is just a cookie with a timestamp in it then the webpage (php, perl, etc or even javascript) reads the cookie and displays a warning if its a few minutes near to the timestamp, giving you the option to re-new the cookie.

    I can think of other ways too though, it depends how complicated you want to make it.

    Dread
     
    Dread, Oct 7, 2005 IP