Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Looking for advice

Looking for advice

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmad Adnan
    wrote on last edited by
    #1

    i want to save some flage in the Application as Application["ID"]; i want to delete this Flag when the session ends but when the user clicks (X) button in the browser the Session_End lates i heared that Session.TimeOut is 20 minutes as Default. i dont have problem when the user Clicks SignOut coz i will delete the Flag immediatly. how can delete this flag immaediatly when he Clicks (X). the whole purpose is to prevent the users to log in from defferent Sessions at the same time regards

    C B 2 Replies Last reply
    0
    • A Ahmad Adnan

      i want to save some flage in the Application as Application["ID"]; i want to delete this Flag when the session ends but when the user clicks (X) button in the browser the Session_End lates i heared that Session.TimeOut is 20 minutes as Default. i dont have problem when the user Clicks SignOut coz i will delete the Flag immediatly. how can delete this flag immaediatly when he Clicks (X). the whole purpose is to prevent the users to log in from defferent Sessions at the same time regards

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can use AJAX to tell you when a user closes the browser. That's your only option. It won't work if the computer loses power, then you can't do anything.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • A Ahmad Adnan

        i want to save some flage in the Application as Application["ID"]; i want to delete this Flag when the session ends but when the user clicks (X) button in the browser the Session_End lates i heared that Session.TimeOut is 20 minutes as Default. i dont have problem when the user Clicks SignOut coz i will delete the Flag immediatly. how can delete this flag immaediatly when he Clicks (X). the whole purpose is to prevent the users to log in from defferent Sessions at the same time regards

        B Offline
        B Offline
        Bino B
        wrote on last edited by
        #3

        go for Ajax

        Regards Sean http://www.codepal.co.nr

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups