+ Start a Discussion
Lalitha Pavani Rallabandi 13Lalitha Pavani Rallabandi 13 

Session timeout for sites

I created sites and assigned a custom login page as a home page.I want to redirect users to portal login page if their session is timeout. There is no document even mentioned how to handle it from Apex. Can someone help me on this problem please?


 
AbhishekAbhishek (Salesforce Developers) 
You can use CName for it.

https://help.salesforce.com/articleView?id=000335296&language=en_US&type=1&mode=1

For further reference, you can check the below blog (https://salesforce.stackexchange.com/questions/217639/custom-url-in-salesforce-communities).

https://help.salesforce.com/articleView?id=siteforce_redirects.htm&type=5

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.