mr_super_genius

 

Hi,

well...what actually i have done is that i have enabled windows authentication in my intranet web application. It works fine...when the user opens the site, a log-in pop-up appears. What i want to know is that whether i can store the login information in a cookie, session or somewhere so that the user, who has logged-in once in a day does'nt need to enter his user name/ password again and again. Is it even possible or not

Thanks in advance



Re: Visual C# General using Windows Authentication in ASP.NET 2.0

Indian Ocean

Hi,

The best forum for such questions would be http://forums.asp.net

Regards,






Re: Visual C# General using Windows Authentication in ASP.NET 2.0

mr_super_genius

thanks but still i could not find the answer to my question...not even on that site

somebody help!





Re: Visual C# General using Windows Authentication in ASP.NET 2.0

Mibble

yes you can modify the code behind for a cookie, set it prior to the login box showing up.




Re: Visual C# General using Windows Authentication in ASP.NET 2.0

Friendly Dog

if you are using windows authentication, i don't think it's possible to avoid this.




Re: Visual C# General using Windows Authentication in ASP.NET 2.0

Indian Ocean

Hi,

I really dont see such possibility directly AFAIK,

But instead of using windows authentication, you use form authentication on front side and behind that, you can do manual windows authentication as shown in the sample in the following link.

http://authors.aspalliance.com/bdesmond/ArticleViewer.aspx ArticleID=2

So you can do login process programatically completely without popping up win authentication login window and using form authentication simply, you will be able to manually setup the mechanism to check cookie or something like that to know if user need to pass credentials again or auto-login.

HTH,






Re: Visual C# General using Windows Authentication in ASP.NET 2.0

mr_super_genius

thanks alot...i'll work on it straight-away. Lets c what happens. At the moment i was able to skip the login window by adding my site to the intranet sites in the internet explorer.





Re: Visual C# General using Windows Authentication in ASP.NET 2.0

Beginnerrrrrr

I used forms authentication.....

i stored the username and password in a cookie.......

And i am able to retireve both....

When i copied the username and password to their corresponding textboxes in LOGIN control.... The password text is goin blank......

\





Re: Visual C# General using Windows Authentication in ASP.NET 2.0

mr_super_genius

BTW i have another problem

i was able to skip that login window by adding that site to my browser's intranet sites and the username/password and domain...everything was working fine, but if i log in from the server (where my IIS is), it still prompts me to write username/password, not only that, if i type the correct username, password & domain, it still does'nt log me in. What could possibly be the reason for that

NOTE: this happens only if i open that site from the server





Re: Visual C# General using Windows Authentication in ASP.NET 2.0

mr_super_genius

Another thing i wud like to add here is that the server is running Windows 2003 server, with IIS V6.0. Somebody plz help...i've already spent a lot of time on this...but found no solutions yet!!