It’s been sometime that I have written a blog on portals. However came across this requirement and thought of posting it for my readers.
This blog focus on couple of topics.
- Configure session timeout in Power Apps portals.
- Redirect to the SignIn page or to any custom page of your choice post session timeout.
If you have any of the above requirements, you are on the right blog. So let’s tackle each problem. The first one is to configure session timeout in Power Apps portals.
Fortunately it’s pretty easy and it can be done with the below site settings.
Name : Authentication/ApplicationCookie/ExpireTimeSpan
Value : The idle time you want to specify (format is in HH:MM:SS). For 10 minutes, you have to specify 00:10:00
In the below example, I have set the timespan to 2 minutes.
So that’s the first requirement. The second one is to configure a redirect page after session timeout. This can also be accomplished using a site setting.
Name: Authentication/ApplicationCookie/LoginPath
Value: The path to your page. For example, if you want to redirect to the out-of-box SignIn, you need to specify /SignIn
Note: This is not an automatic redirect. If session timeout is configured for 10 mins, after 10 mins of idle inactivity, if the user try to access any page, they will be redirected to the redirect page that is configured in Site setting.
Hope this helped. You will also like the below posts.
Debajit Dutta
Business Solutions MVP
Discover more from Debajit's Power Apps & Dynamics 365 Blog
Subscribe to get the latest posts sent to your email.