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

Re: Sql Session

$
0
0
Re: Sql Session
Web Connection
Re: Sql Session
Mar. 27, 2013
06:17 am
3QX0DHTS5Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:MatNat
YOu should make sure your SQL connection is working and you can access the wwSession table.

Something along the lines of:

DO wconnect loSql = CREATE("wwSQL") ? loSql.Connect("yourconnectionstringhere") ? loSql.cErrorMsg ? loSql.Execute("Select * from wwSession")Browse

+++ Rick ---


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




Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles