This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
Hello Joe & Community,
From a previous thread (see link below), I understand mojoPortal doesn't use Session variables often. In fact, mojoPortal only use them in one feature.
http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&mid=34&ItemID=9&thread=1503&postid=6269
Question: Therefore, it's my understanding that there is no use of Session.Abandon(), in the mojoPortal core. Is this right?
I use Session variables in my code. So, my plan is to add Session.Abandon() to the LogOff.aspx.cs. However, I also am very reluctuant to do this, as I'm then touching the mojoPortal core (which Joe frowns upon). Can anyone think of a way for me to clear Session.Abandon() during logging out, without touching the core?
thanks,
Michael
Hi Michael,
I will add this to the logoff.aspx page so that it will clear any session variables if they exist.
try
{
if (Session != null) { Session.Abandon(); }
}
catch (HttpException) { }
Best,
Joe
Thank you Joe.