3
Views
3
Comments
Session storage in Outsystems
Question
I have multiple espaces with session variables and I would like to clear everything out when the user logs out by using this code:

System.Web.SessionState.HttpSessionState mySession = System.Web.HttpContext.Current.Session;
 mySession.Abandon();

Will this clear out the session variables in outsystems or are session variables managed a different way in outsystems?
2011-08-23 22-04-05
Tiago Simões
Staff
Hi Rebecca,

From version 6.0 onwards doing a logout should automatically clear the session variables. If this is not working correctly please contact OutSystems Technical Support.

Cheers,
Tiago Simões
2018-06-01 14-37-59
Rebecca Hall
We are still working in 5.0.  Is there anyway to see how they clear the session in 6.0?
2024-06-12 10-07-10
Daniel Martins
Hi.

You can try:

 HttpContext.Current.Session.Clear();   

You can find this solution here.

Best regards.
Daniel Martins.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.