session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saravanan9655
    New Member
    • Dec 2015
    • 1

    session

    I want the session destroy on browser close using php..
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    We do ask that you attempt this first and then post your code.
    People are more willing to help if you show that you've made an effort.

    Give you hint... maxlifetime

    So if you will post your code, formatted with the [CODE/] tool please, we can help point you in the right direction.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      you can always use the onbeforeunload event to fire a XMLHttpRequest for example to ur webserver that destroys the session if you want to

      Comment

      Working...