You need to sign in to do that
Don't have an account?

site login authentication when redirected from other website
Hi,
I have already built site login page and some pages after that with Customer Portal enabled.
Now I have a requirement wherein if a user is already loggedin so he should be redirected to page2 else to page 1.
With little digging I have found that by checking (UserInfo.getUserType() != 'guest') we can check if the user is loggedin or not.
But my main concern is that: If I am getting redirected from some other website/webpage to my SFDC site and
if the user
- is already logged in then he should get redirect to the page2.i.e. if the same browser is used for redirecting to SDFC site so with the same session Id he should be logged in into my portal.
- else to page 1 where he has to fill some information ........... and do some tasks
Please let me know if some further information is required.
Best,
Ritik
I have already built site login page and some pages after that with Customer Portal enabled.
Now I have a requirement wherein if a user is already loggedin so he should be redirected to page2 else to page 1.
With little digging I have found that by checking (UserInfo.getUserType() != 'guest') we can check if the user is loggedin or not.
But my main concern is that: If I am getting redirected from some other website/webpage to my SFDC site and
if the user
- is already logged in then he should get redirect to the page2.i.e. if the same browser is used for redirecting to SDFC site so with the same session Id he should be logged in into my portal.
- else to page 1 where he has to fill some information ........... and do some tasks
Please let me know if some further information is required.
Best,
Ritik
Best,
Ritik