1)I want add a Session_OnEnd event in global.asa in order to write in the UserTable of my DB the date of the last session of every user...
I set a variable in global.asa in this way...
Sub Session_OnEnd
FINE=now()
End Sub
Now I have to write the value of FINE in the record in my DB with
Update UsersTable set LastSess=FINE
where User='"&Session("User"&"'"
(I think this work fine)
...But I'm not sure about the sintax of the conn string (a DSNless conn string)in global.asa...
2)I'd like set a conn string (DSNless conn) to DB in global.asa so I can call it in a page every time I need to connect to DB... is this possible and how?
Thanks
[sig][/sig]
I set a variable in global.asa in this way...
Sub Session_OnEnd
FINE=now()
End Sub
Now I have to write the value of FINE in the record in my DB with
Update UsersTable set LastSess=FINE
where User='"&Session("User"&"'"
(I think this work fine)
...But I'm not sure about the sintax of the conn string (a DSNless conn string)in global.asa...
2)I'd like set a conn string (DSNless conn) to DB in global.asa so I can call it in a page every time I need to connect to DB... is this possible and how?
Thanks
[sig][/sig]