Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Php session

Discussion in 'General Webmaster Helpdesk' started by clau, Aug 8, 2005.

  1. clau

    clau Guest

    I am using session in some sites of mine and my problem is how can i close the session if somebody does not log uot only closes the window or tab?

  2. stealthhosts

    stealthhosts New Member Webmaster

    Why close the session?

    The session will close client-side when the user closes the window, if you must though, you can either set session timeout or session_write_close() at the end of your code
  3. clau

    clau Guest

    You never leaved a forum or any site where you neede to log in without logging out?
    If you did than you noticed that when you enter back you are already logged in without asking you for password an so.

    This is why I want to close the session even is you exit the site without logging out.
  4. stealthhosts

    stealthhosts New Member Webmaster

    Thats cookies not sessions

    Sessions close when the window is closed.
  5. Duke

    Duke Guest

    What he said.
  6. clau

    clau Guest

Featured Resources (View All)

Share This Page