Click here to Skip to main content
15,886,648 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
Hello Friends,

I have a strange issue. I am working on a web application in which I am creating reports and exporting that report to a word file and sending email to users.

During my testing I found that when I click on a link in outlook email, I can log in to the application. I mean if I am already logged in, system does not ask me again to log in, which is working fine. But when I click on link in a word file, system asks me to log in even if I am already logged in.

The issue is I am having a check on maximum number of logged in users and it is creating an issue for me. I can disable the count increment by checking the logged in user but that is the second option.

I want a solution for the problem that why system is allowing me to log in from outlook and not from word file.

Please suggest a solution.

Thanks,
Jagjot
Posted
Comments
Sergey Alexandrovich Kryukov 22-Jan-11 0:22am    
What Web browsers have you installed on your systems? What Web browsers are running in every of that cases?
Jagjot Singh 22-Jan-11 0:24am    
Internet explorer only, because right now we have requirement to run this project on IE only.
Sandeep Mewara 22-Jan-11 0:40am    
Is Outlook running on an exchange server?
Jagjot Singh 22-Jan-11 0:45am    
no, its on my local machine only by POP3.
Sandeep Mewara 22-Jan-11 1:05am    
So, you give credentials to get through this POP3, right? (May be saved it while setup)

1 solution

Here is what I can think of as a possible reason:
Outlook needs windows credentials in order to connect and get connected to exchange server. You can either set that to ask whenever you open your Outlook or can set it to use auto-login.

Based on your scenario, it looks like the link when launched from Outlook has already this authentication done and thus when launched in IE, no username-password asked. The same does not hold good for MSWord as it has no relation with authentication when opening it.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Jan-11 1:09am    
Sandeep, it looks convincing. My 5, even though I'm not 100% sure.

(I was thinking one application would run IE, another -- default browser and checked up -- it's not the case, I was wrong.)
If your you're right, this problem will not look this way for a customer: in both cases credentials will be required.
This is opposed to what OP wants, but this is a wrong requirement of course. Just the opposite: for a client of Web application its credentials should always be requested and not associated to local users login and their local network credentials.
Sandeep Mewara 22-Jan-11 1:13am    
Yep. Further IE has a way to by-pass crendentials and sharing the authentication across tabs! :)

Sergey Alexandrovich Kryukov 25-Jan-11 12:30pm    
Really? Could you please explain how?
Thank you in advance.
--SA
Sandeep Mewara 25-Jan-11 12:33pm    
Haven't you noticed that sessions/authenticated credentials across the tabs of IE are shared by default?

Further, via setting in IE, we can either autologon using the windows password or prompt for crendentials.

Internet Options -> Security -> Internet/Intranet -> Custom Level -> User authentication
Sergey Alexandrovich Kryukov 25-Jan-11 15:25pm    
Thanks a lot, I'll take a look

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900