Dear all, I have a web application in which i have users I am using the session variable to save the user type,city,email,state etc and using these session in my application , my application gets very slow may b due to these session or not please let me know and also let me know what are the alternatives instead of session ,
Secondly i have different user types into the system and based on the user type i want to redirect the user to his/her own page i used server.transfer so my login page contains 6 if else because i have 6 user types and based on the user type i redirect that user to his own page what else i should use to make application fast
Loading

Danish HabibPosted Jan 18, 2015, 5:55 AM
Md. Raskinur RashidPosted Jan 18, 2015, 3:40 AM
http://www.c-sharpcorner.com/Forums/Thread/282354/what-is-the-alternative-of-session-variable-in-C-Sharp.aspx
And for page redirection -
you can use-
switch (getGroup)
{
case = 1:
Response.Redirect("page1.aspx");
break;
case = 2: Response.Redirect("page2.aspx");
break;
default:
throw new Exception("I didn't do anything");
}