Hi all,
i developed one sample site www.MySite.com.
It contains one login page, customer entry page and Send Message.
i opened this site in IE (my pc).
In login page i entered username(X) and password. After authenticate i transfer to customer entry page.
i maintained UserName in Session.(Session["UserName"] = x;)
Again i opened www.MySite.Com in browser(Same Pc) this time some 'y' person login into site.
i am transfer to SendMessage Page.(Session["UserName"] = y;
Here my problem is once i openend two instances for my site in same pc with different users login.
My Session["UserName"] is name is changing user 'X' to 'Y'.
Sessions are overriding.But sessions are have unique id's.
please tell me how to resolve this issue.
Regards,
Jeevan.
Loading
vijayPosted Feb 23, 2011, 3:59 AM
session should vary to maintain a data for different users,untill session end its carry stored variable...use this links to learn more about session....http://vbdotnetaddict.blogspot.com/2011/02/application-sessioncache-and-cookies-in.html
Suthish NairPosted Feb 22, 2011, 11:47 AM
you need to read more about Sessions.
refer Our recommended articles section