diff options
author | gareth | 2007-03-02 23:26:36 +0000 |
---|---|---|
committer | gareth | 2007-03-02 23:26:36 +0000 |
commit | 808fdcc915d983ba9a16409bb634687668651c44 (patch) | |
tree | 07b3266de627e1a6117f7f09a2b2093951a8531b | |
parent | Implemented logouts (so you can logout and then return later! woohoo) (diff) | |
download | opensim-SC-808fdcc915d983ba9a16409bb634687668651c44.zip opensim-SC-808fdcc915d983ba9a16409bb634687668651c44.tar.gz opensim-SC-808fdcc915d983ba9a16409bb634687668651c44.tar.bz2 opensim-SC-808fdcc915d983ba9a16409bb634687668651c44.tar.xz |
Added usersessions/delete function
-rw-r--r-- | ogs/gridserver/usersessions/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ogs/gridserver/usersessions/index.php b/ogs/gridserver/usersessions/index.php index 3c18932..e7a3817 100644 --- a/ogs/gridserver/usersessions/index.php +++ b/ogs/gridserver/usersessions/index.php | |||
@@ -77,5 +77,9 @@ switch($cmd) { | |||
77 | case 'exists': | 77 | case 'exists': |
78 | echo $exists; | 78 | echo $exists; |
79 | break; | 79 | break; |
80 | case 'delete': | ||
81 | $query = "UPDATE sessions SET session_active=0, session_end=NOW() WHERE agent_id='$agent_id' LIMIT 1"; | ||
82 | $deleteresult = mysql_query($query); | ||
83 | break; | ||
80 | } | 84 | } |
81 | ?> | 85 | ?> |