SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2009
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    session timing doubt solve pls..........

    hello friends at last i have fixed a valid timer for my program which will update the status of database if the time limit is over but i need to know how to fix it like if the window closed without loging out also the timer should work in the background and after the time limit it should update the database status can any body know the solution if u know the coding way pls put in the coding way

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    This is what you can do: -

    When the user signs in, store the time stamp in a table. Create on script that runs through cron after every 2 minutes and reads this database to find the records for which the time has exceeded, for records found update the status in the master table and you are done.

    Hope this helps.

    Cheers,

    ~Maneet
    Maneet Puri
    Lexolution IT Services


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
  •