Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Sql Session

$
0
0
Sql Session
Web Connection
Sql Session
Mar. 27, 2013
04:03 am
3QX08ON38Show this entire thread in new window
Gratar Image based on email address
From:MatNat
To:All
Hi,
I'm trying to save session data in sql server table.
I have already enabled variables in wconnect.h file as indicated in the documentation, created tables through your wizard, and set the connection string in my ini file.
Now I'm initializing the session with the command:
Process.InitSession("Test")

when I try to save a variable in session, the command:
Session.SetSessionVar("Matias","1")

return an error because the Session.oData is not an object:
FUNCTION SetSessionVarLPARAMETERS lcVarName, lcValueLOCAL lctext, lcValue, lcOldAlias, loData lcVarName = lower(lcVarname) loData = THIS.oDataIFEMPTY(lcValue) lcValue = ""ENDIF*** New Id value lcText="<"+lcVarName+">"+TRANS(lcValue)+"</" + lcVarName + ">"+CHR(13)IFATC("<"+lcVarName+">",loData.vars) > 0 **** .... ....

This.oData is null and I can not understand if I forget something or if I'm wrong to initialize the session. Does anyone know how to help me or can send some examples?

thank you very much
Matias


Viewing all articles
Browse latest Browse all 10393

Trending Articles