0

I have used some session variable in my project which are giving some serialization error after i enabled spsessionstate. Do we have any alternatives for sessions in sharePoint? I tried changing sessions to viewstate but the problem still persists as whatever we are using in sessions/viewstate has to be serializable.

Please help

0

There is no alternative to session in SharePoint. You must decorate the class with serializable attribute to store in session or ViewState.

0

You can probably choose cookies. If cookies are out of option for you, and if it is a single front end farm, you can try the site Property Bag. But as noted here, the Property Bag is not really meant as a Session substitute, so you'll need to make sure that you use unique keys and remove the key value pairs when you are done with them.

Refer Alternative to Session in SharePoint and Need an alternative to session variable across pages

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.