View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
does not working my LogOut button:
user did check "save password" on login
when user press Logout button it automaticaly login again
 
I try to call ForgetPassword() and Logout() methods, but user still cannot logout
 
I try to redirect (see below) but again no result
what am I doing wrong?
may I need another logout algorithm?
 
 
this part of my survey.fwx
 
Auth.AuthTable = user.dbf
Auth.CancelAction = "history.back();"
Auth.SaveCookie = 2
IF Request.QueryString("logout") = '1'
    Auth.Logout()
    Response.Redirect("survey.fwx")

    **** show the same page for login another userID
    return
ENDIF
 
Auth.Authenticate
IF !empty(Request.form("bLogout"))
   
****    button Logout was pressed
   
Auth.ForgetPassword()
    Response.Redirect("survey.fwx?logout=1")
    return
ENDIF

****... other content ...
 
 
anyone has any ideas?
Vadim