Hi,
I am using WSS 3.0 for my site development.
For this, i want that at the time of initial login it sohuld not ask
for Windows Authentication (Should use looged in user's credentials).
Now, i have set up a timeout of 1minute for my site.
If 1minue of inactivity is there then i want to show the Login Screen
again (Windows Authentication) and then redirect to the same page
where user was originally working
e.g. if user is at Mypage.aspx and login session expires, then on
session_start, it should ask for Login Credentials and then go to
Mypage.aspx again.
I have been able tosetup the timeout period and on Session_Start, i am
trying to redirect it to Authenticate.aspx. Now the problem is that, i
have not been able to distinguish between the initial login and login
after session expiry.
Also when i use authenticate.aspx, it tries to authenticate user for
3times i.e. asks the credentials for 3times.
Please help me in solving this problem.
Here is the code that i am using for this:
void Session_Start(object sender, EventArgs e)
{
Response.Write(HttpContext.Current.Request.Url.Host
+ HttpContext.Current.Request.ApplicationPath +
"Session is Starting...<br>");
// Redirect here to Authenticate.aspx which is used by default by
IIS.
Session.Timeout = 1;
}
void Session_End(object sender, EventArgs e)
{
Response.Write("Session is Ending...<br>");
Response.End();
}
Regards,
Shreshth