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

Re: Windows authentication after session expiry by Mike

Mike
Thu Feb 08 06:51:17 CST 2007

>i want that at the time of initial login it >sohuld not ask for Windows
> >Authentication (Should use looged in >user's credentials).

Also posted to .portalserver (twice). Just post to one newsgroup in future
please.

If the user is logged in to the domain; domain users have been given access
rights to the site; and the site is regarded as being an Intranet site then
the default value for Logon for IE is "automatic logon only in the Intranet
zone". If the site is regarded as being Internet then specify the IE
security rights for the Internet zone to "Automatic Logon with current
username and password".

In both cases your domain users will not need to login to access the site.

Mike Walsh
WSS FAQ: www.wssv3faq.com / wss.collutions.com
No private questions please (additions to FAQ welcome)

"sl" <shreshth.luthra@gmail.com> wrote in message
news:1170938171.288691.243650@k78g2000cwa.googlegroups.com...
> 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
>