You need to sign in to do that
Don't have an account?
tom_CR
User is logged in or not | Web Messenger
Hi All,
We are creating web messenger in Salesforce using HTML, JavaScript, S-Control and Ajax.
Can one tell us how can we know the following?
- User is logged in or not
- User is accessing our application.
Thanks in Advance
Regards
Tom
You can check for the existence of a cookie called "sid" in the *.salesforce.com domain. This will tell you if a user has logged in, although it won't tell you whether that login has timed out. So the login may or may not be valid.
User is accessing our application.
I would think you would know whether the user is accessing your application or not. It is, after all, your application.