Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to implement image url should ask login credentials while browsing in url bar.
For ex Gmail View image url will ask us credentials if gmail account logged off.

One more ex we will see it in Facebook image urls.

Thank you all in advance.
Posted
Updated 26-Sep-13 19:43pm
v6
Comments
Rick van Woudenberg 25-Sep-13 5:33am    
Could you please provide us with an example. It's really hard to understand what you want us to help you with.
[no name] 25-Sep-13 5:45am    
k Rick van Woudenberg,
will provide some steps for your understanding.
1.Please open your gmail account.
2.If possible open any image of View option then one url will generate in URL.
3.Copy the above url.
4. Log off your gmail.
5.paste copied url in the window then we will see authentication required option in browser.
Reply me as early as possible
Rick van Woudenberg 25-Sep-13 6:10am    
Hi Ram,

Thank you for clarifying your issue. One question remains. Do you , or don't you want the image url to ask for credentials. The gmail example is behaviour by design. If you want to access an image that belongs to a domain and the session is no longer established, you have to setup a new secure session in order to access the image, thus its asking you for credentioals again.
[no name] 25-Sep-13 6:28am    
Ya I need image url should ask credentials.
Actually I want to implement this in my application if possible send me any reference for this
[no name] 25-Sep-13 7:37am    
If possible give me reply I am waiting for solution for this issue.

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