Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guess,
i was developed a dynamic website in asp.net. there i make a login page through facebook. i want when a user login in this page with their facebook username and password. after login user is able to use their facebook without login and as well as also register in my website.


please help me in this
Posted
Comments
bbirajdar 1-Sep-12 14:12pm    
You need to read the requirement documents more carefully. No user will enter his facebook credentials on your website

there i make a login page through facebook
You answered your question by yourself! "Through facebook"!

I doubt facebook has any deal/connection with your site such that if they find peopled logged in on your site avoid/bypass login on facebook itself.

End result: You cannot do/restrict it using your website.
 
Share this answer
 
Hi,

You are asking about opening facebook on one Tab of browser but on another Tab it should not open. it's not possible for now. In future it may be there but currently they are using single session per browser. So when you login using facebook it will create one session for you. it will remain until you logout.

So as sandeep said, it's not possible.

But one possible workaround is, After loing through facebook in your site, create your own Session if user successfully login. And Logout from the facebook immediately. But this will work only if you are using facebook login functionality.:)

Thanks
-Amit Gajjar
 
Share this answer
 

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