N
Nitin
Hi,
I am having a web site using windows authentication
(basic). After the verification of credentials, a session
is started. Within the Session_Start Event, I am
extracting the identity of current user. But it starts a
new session sometimes after executing one line in the
session_start event and sometimes more lines.
Following is the code :
Can anyone suggest me why it is starting multiple
sessions here.
protected void Session_Start(Object sender, EventArgs e)
{
string userLoggingIn = Users.GetUserLoggingIn();
int userNameLen = userLoggingIn.Length -
userLoggingIn.IndexOf(@"\",0,userLoggingIn.Length)-1;
userLoggingIn = userLoggingIn.Substring
(userLoggingIn.IndexOf(@"\",0,userLoggingIn.Length)
+1,userNameLen);
Session["parent"]= userLoggingIn;
}
I am having a web site using windows authentication
(basic). After the verification of credentials, a session
is started. Within the Session_Start Event, I am
extracting the identity of current user. But it starts a
new session sometimes after executing one line in the
session_start event and sometimes more lines.
Following is the code :
Can anyone suggest me why it is starting multiple
sessions here.
protected void Session_Start(Object sender, EventArgs e)
{
string userLoggingIn = Users.GetUserLoggingIn();
int userNameLen = userLoggingIn.Length -
userLoggingIn.IndexOf(@"\",0,userLoggingIn.Length)-1;
userLoggingIn = userLoggingIn.Substring
(userLoggingIn.IndexOf(@"\",0,userLoggingIn.Length)
+1,userNameLen);
Session["parent"]= userLoggingIn;
}