You need to sign in to do that
Don't have an account?
Amol_Nikam
how to check if user is logged in or not?
hi all ,
i am new bee in salesforce. i have created sample site in force.com and i have my custom object table for user,now i want to check that whether the user logged in or not and i want to show the page to that user also if someone tries to directly access that url then want to be redirected the user to login page.
Thanks in advance,
Amol.
In your controller, you can execute the following method to get the type of user:
for unauthenticated users, this will return the string 'Guest'.
There may be other ways to achieve this, but the above is the only one I've been able to find!