Hi Neil,
The only way I can think of to do it is by implementing a UserSignInHandler and setting the session variables from there and that does require compiling a dll. Since you're a paying customer and since this is very easy, I'm going the extra mile for you and email you a dll that sets the session variables you indicate. The code for it is as follows:
using System.Web;
using log4net;
using mojoPortal.Business.WebHelpers.UserSignInHandlers;
namespace WebWiz.mojoPortal.Helpers
{
public class mojoSignInWebWizHandler : UserSignInHandlerProvider
{
private static readonly ILog log
= LogManager.GetLogger(typeof(mojoSignInWebWizHandler));
public mojoSignInWebWizHandler()
{ }
public override void UserSignInEventHandler(object sender, UserSignInEventArgs e)
{
if (e == null) { return; }
if (e.SiteUser == null) { return; }
if (HttpContext.Current == null) { return; }
// set session vars as indicasted in this forum thread
//http://www.mojoportal.com/Forums/Thread.aspx?thread=2298&forumid=9&ItemID=9&pageid=5&pagenumber=1
HttpContext.Current.Session["USER"] = e.SiteUser.LoginName;
HttpContext.Current.Session["PASSWORD"] = e.SiteUser.Password;
HttpContext.Current.Session["Email"] = e.SiteUser.Email;
log.Debug("mojoSignInWebWizHandler called for user " + e.SiteUser.Email);
}
}
}
Best,
Joe