J
jbeteta
My web application is losing session values for some reason, and it happens after an external web page is called. My application is quite big, so any major change would require too much time. My database is Oracle, not Sql Server.
Would be there an alternative way to store value of those session variables? Actually I just need to keep two session variables.
I was thinking to store those values in a Oracle table. Key would be SessionID. I read that SessionID keeps its value even after other session variables are recycled or lost, but I'm not complete sure.
I was planning to put a function on each page, on Page_Load mewthod, checking if session variable is still there. If not, then go to Oracle table and retrieve it.
Something like:
If Session("MyVariable") Is dbNull.Value Then
Seek it on Oracle table, using SessionID as Key, and assign to variable Var
Session("MyVariable") = Var
End If
Do you think it would be OK? Can I trust SessionID?
Would be there an alternative way to store value of those session variables? Actually I just need to keep two session variables.
I was thinking to store those values in a Oracle table. Key would be SessionID. I read that SessionID keeps its value even after other session variables are recycled or lost, but I'm not complete sure.
I was planning to put a function on each page, on Page_Load mewthod, checking if session variable is still there. If not, then go to Oracle table and retrieve it.
Something like:
If Session("MyVariable") Is dbNull.Value Then
Seek it on Oracle table, using SessionID as Key, and assign to variable Var
Session("MyVariable") = Var
End If
Do you think it would be OK? Can I trust SessionID?