Web Connection
WWWC_DEFAULT_SESSIONCOOKIE_NAME error during wwresponse
Gravatar is a globally recognized avatar based on your email address. WWWC_DEFAULT_SESSIONCOOKIE_NAME error during wwresponse
  Chris ODonnell
  All
  Sep 1, 2020 @ 11:44am

I just started receiving this error after recompiling my 4.68 webconnection executable, then running it, and the first request gives this error message.

Variable 'WWWC_DEFAULT_SESSIONCOOKIE_NAME' is not found.

All was fine yesterday. Not sure what i did. My project's WCONNECT.H file ends with....

**** CUSTOMIZE AND OVERRIDE SETTINGS INDEPENDENTLY
**** OF THE WC INSTALLATION
#IF FILE("WCONNECT_OVERRIDE.H")
	#INCLUDE WCONNECT_OVERRIDE.H
#ENDIF

*!*  WCONNECT_OVERRIDE.H would contain (for example):
*!*			#UNDEFINE DEBUGMODE
*!*         #DEFINE DEBUGMODE .T.

*!*			#UNDEFINE SERVER_IN_DESKTOP
*!*         #DEFINE SERVER_IN_DESKTOP .T.

The variable WWWC_DEFAULT_SESSIONCOOKIE_NAME is defined/referenced in the wconnect.h file:

*** Default Session Cookie Name
#DEFINE WWWC_DEFAULT_SESSIONCOOKIE_NAME "WCSESSIONSTATE"

Gravatar is a globally recognized avatar based on your email address. re: WWWC_DEFAULT_SESSIONCOOKIE_NAME error during wwresponse
  Rick Strahl
  Chris ODonnell
  Sep 1, 2020 @ 12:48pm

You need to recompile your code and make sure that wconnect.h is in your path when the file or app is rebuilt.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: WWWC_DEFAULT_SESSIONCOOKIE_NAME error during wwresponse
  Chris ODonnell
  Rick Strahl
  Sep 1, 2020 @ 01:59pm

Thanks Rick. I had recompiled all PRGs and VCXs. Turns out i had a file WCONNECT.H in my project's main dev folder and there was also one in the WEBCONNECTION folder. I removed the one in main dev folder and recompiled. That fixed it.

© 1996-2024