I have one site collection where I need a data from Session Storage. So I enable my Session from web.config. I know it is not recommended Session in Sharepoint, but my client needs it.
So Basically My need is I have two login option one with SharePoint default login which is working perfectly fine. but in second option I am using form based authentication. its also working fine, but the problem is when I logged for the first time then I Set one Session variable. the basis of that variable I am calling one web service outside of SharePoint which is returning with my username.
when I refresh my page after 4-5 hours session is set to null because of a session timeout. Can we set SharePoint Session timeout same as SharePoint default logout time? if yes please suggest something. I already follow this link, but unfortunately, it is not working for me.