session not expiring on custom page

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
nyukuri
User
Posts: 123

session not expiring on custom page

Post by nyukuri »

Hello,

when the session is expired, the user is automatic logged out.

Is it possible, that on just one specific (custom) page the user is never logged out, meaning the session not expiring? How can I do that?

Thank you for your help,
Nyukuri


arbei
User
Posts: 9351

Post by arbei »

In your custom page, update the variable EW_SESSION_KEEP_ALIVE_INTERVAL in JavaScript, then the page will keep posting request and keep the session alive.

For example:
<script type="text/javascript">
EW_SESSION_KEEP_ALIVE_INTERVAL = 10; // The request will post every 10 seconds.
</script>

Read the example in help file topic: "Tools" -> "Advanced Settings" -> "Session keep alive interval (seconds)"


Post Reply