I need to do this because of Facebook Connect - which is another story, so I'll pretend you to it. =)
Anyway, I have this function that runs on the window. Oload:
function user () {SomeFunctionWhichGetsFacebookCookes (); If (! Login Informing End And amp In Login Envelope Book) {window.location.reload (); // fresh page, so I can login automatically}} Therefore, I need help in getting the flag "loggedInUsingFormsAuth"
What I look like in the cookie Keeping it, it is important to know that the current user has been certified.
Why am I doing this?
OK, but load the window, if the user is logged into Facebook but not on my website (according to the form authentication cookie), I want to reload the page - which is my ASP. The Net allows the website to read Facebook cookies in HTTPTets and log the user. I need to do this in JavaScript, because I do not have a Facebook cookie unless I call "SomeFunctionWhichGetsFacebookCookies" - which can only be done in Javascript.
So, am I currently certified by Javascript user? Do I have to come through the cookies manually, I want to find and inspect one? Is this a safe thing?
Or would I alternatively write the flag client to the server using the register client script?
You can add the following to your web.config file.
& lt; System.web.extensions & gt; & Lt; Screening & gt; & Lt; Webservices & gt; & Lt ;! - ajax.net allows for user authentication - & gt; & Lt; Authentication service enabled = "true" required SSL = "wrong" /> & Lt; / Webservices & gt; & Lt; / Script & gt; & Lt; /system.web.extensions> And then you can find out via javascript if you have been certified as such.
function isAuth () {var result = Sys.Services AuthenticationService.get_isLoggedIn (); Return result; }
Comments
Post a Comment