cancel
Showing results for 
Search instead for 
Did you mean: 

Context variables in a HTTP session

Former Member
0 Kudos

When I launch a web dynpro in the browser I save all the information in the context variables in the controller. Upon reloading the web dynpro all the context variables that were saved are all lost even though we're on the same HTTP session. Is there a way to keep the context variables saved up for a HTTP session?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Faraz,

Not sure.

But one workaround could be to store the variables temporary on a KM document.

I once saw this solution on a client. (it stored simple variables such as flags, numbers, etc...)

It was for temporary variables and it did the job pretty well.

Maybe could be an alternative for what you're looking for.

Kind Regards

/Ricardo Quintas

Former Member
0 Kudos

Well for workaround I am saving some attributes in the HTTP session but find it weird that context attributes are lost for the same session.

Former Member
0 Kudos

Hi,

I know it's bit off the route.. But you can try using cookies..

You can even secure the data by encrypting/decrypting the content in the cookies and delete the cookies upon session expiry/window closing..

Regards,

Vijay.