function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravindra Kashyap 7Ravindra Kashyap 7 

Can I set session timeout for Customer Community public URL.

Hi All,

I am trying to set/implement session timeout functionality in Lightning Component. As this page is accessible by anyone, when I am setting "Session Timeout" for guest users at profile level it is not working.

So, my question is there is any built-in functionality to do this?

I can do this by using normal JavaScript codes but I am looking for any Standard way.

Thanks.

Best Answer chosen by Ravindra Kashyap 7
Ravindra Kashyap 7Ravindra Kashyap 7
I think there is no direct way to show session timeout for guest user, So I have written Javascript code for timeout.
If any better solution is there then please suggest.

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

You can set the session time out for the profile of guest users, refer below help article.

https://help.salesforce.com/articleView?id=users_profiles_session.htm&type=5
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
 
Ravindra Kashyap 7Ravindra Kashyap 7

Hi Sandhya,
Thanks for the quick reply. 

I already tried to set session timeout at the profile. But it is not working.
I think this session timeout will work only for logged in user, Please correct me if I am wrong.

But in my case page is public, no need to log in(I am using this lightning component in Customer Community as a public page).

User-added image

 

Ravindra Kashyap 7Ravindra Kashyap 7
I think there is no direct way to show session timeout for guest user, So I have written Javascript code for timeout.
If any better solution is there then please suggest.
This was selected as the best answer