Aug 25, 2011 07:44 PM|araczynski2|LINK
Ok, I think some people are after this functionality, but personally I am not in this case :)
Built a VS2010 C# Web Project, Have a custom class for storing logged on user information ("User2"), with the [Serializable()] declaration. I then on a web form create a new object for User2 and then try to populate everything. After the object is created
and populated, i put it in Session["ThisUser"] which i then try use on a page load of any response.redirect("..") to 'continue' with the same user. like:
public partial class ExpenseForm : System.Web.UI.Page
User2 ThisUser = new User2();
protected void Page_Load(object sender, EventArgs e)
if (Session["ThisUser"] != null)
ThisUser = (User2)Session["ThisUser"];
ThisUser.RETURNURL = HttpContext.Current.Request.Url.AbsoluteUri;
On two seperate (ie/firefox/chrome browsers), after loggin in properly, if i navigate to a different page it seems that the last logon will overwrite all session data in the first session/browsers, so on the first browser if i click somewhere else it will
be with the second browser's user information (name/etc). The two browsers seems to show different Session.SessionID values however.
This even happens if i log in on one computer and travel 50 miles to a different office. I've tried it with InProc and StateServer.
At first i thought it was because i mistakenly put all the user variables inside the Global.asax, so that's why i created the seperate class to store the user data. but now Global.asax has no reference to any of the user2 variables nor does it create any
instance of the object.
its driving me nuts.
What am I pulling a Simpsons on?