Web Connection
Authentication logout
Gravatar is a globally recognized avatar based on your email address. Authentication logout
  n/a
  All
  Sep 30, 2014 @ 12:11pm
I get this error when using response.addheader .. is in wwprocess... I looked for addheader and it's not even a method of response...

this is the code in wwprocess

FUNCTION Authenticate(lcValidUserName,lcErrorMessage,llNoForcedLogin)
LOCAL lcUsername, lcPassword, lcErrorMsg, loLogin, lcHtml, lcCurrentUrl

IF EMPTY(lcValidUserName)
lcValidUserName = ""
ENDIF

DO CASE
CASE UPPER(lcValidUserName) = "LOGOUT"
IF THIS.cAuthenticationMode == "UserSecurity"
THIS.lEnableSessionState = .T. && ensure that session exists
Session.SetSessionVar(this.cAuthenticationUserSecurityKey,"")
*** Expire cookie
this.oResponse.AddCookie(this.cSessionKey,"","/",MimeDateTime(DATE()-1))
RETURN .T.
ELSE
*** Clear authorization header
Response.AddHeader("Authorization","") <<<------------------------------------
ENDIF

CASE THIS.cAuthenticationMode == "UserSecurity" OR ;
this.cAuthenticationMode == "Custom"

© 1996-2024