Results 1 to 4 of 4

Thread: PHPLogout

  1. #1
    Join Date
    Jan 2011
    Posts
    3

    Question PHPLogout

    I want to make a account system in my site. When you go to a certain part of the site (secured with htaccess), a database value will be changed to 1.

    The problem is: how do you change that back when you close the window, so you will be logged out when you close the window?

  2. #2
    Join Date
    Feb 2011
    Posts
    5

    Default

    thank you for data

  3. #3
    Join Date
    Feb 2011
    Posts
    43

    Default

    its very tricky part...

    why you want to have the database value set to 1?? that is very poor coding..

    you should have some function that does that update. so that needs to be altered with the session values. session can created with expiry time. so it will get expired soon you closed the window.

    contact me, if you need more assistance to resolve the issue.

  4. #4
    Join Date
    Apr 2011
    Posts
    10

    Default

    What? what have you tried to do?

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
  •