I solved ... the problem was due to the format of the date and time. My sql server support Italian format (dd-mm-yyyy) so when wwSeesion.prg was performed the store procedure "sp_ww_LocateSession" this was in error, because the Datetime function return a date in american format.
Here the changes implemented:
FUNCTION LocateSessionPARAMETERS lcSessionId lcSessionId=IIF(type("lcSessionId")="C",lcSessionId,THIS.cSessionId)SETHOURSTO 24 *** MySETDATETO italia *** MyTHIS.oSQL.cSQLCursor = "wwsession"IFTHIS.oSql.Execute("Exec sp_ww_LocateSession ?lcSessionId,'" + ttoc(DATETIME() - THIS.nSessionTimeout)+"'") # 1 ***My**IF THIS.oSql.Execute("Exec sp_ww_LocateSession ?lcSessionId," + TimeToCStrict(DATETIME() - THIS.nSessionTimeout,.T.)) # 1 Orginal RETURN .F.ENDIFIFRECCOUNT() > 0 SCATTERNAMETHIS.oData MEMOTHIS.cSessionId= wwSession.SessionIdRETURN .T.ENDIFSCATTERNAMETHIS.oData MEMOBLANKTHIS.cSessionId=""IF lcSessionId = "BLANK"RETURN .T.ENDIFRETURN .F. ENDFUNC
Thanks for the support
Matias