Web Connection
InitSession Timeout Setting
Gravatar is a globally recognized avatar based on your email address. InitSession Timeout Setting
  Steve
  All
  Jan 9, 2026 @ 05:01am

Hi Rick,
I need to increase the Session Timeout from the default 30 minutes for a particular process. The InitSession indicates all the parms are optional. Will this work for only increasing the timeout parm? Or, is there a different syntax for only specifying a custom timeout parm?

THIS.InitSession(,28800)

I have found that if I use this: THIS.InitSession("PPDMSWeb,1800,.T.), the Logout.ppw (logout process) does not work. However, when I use THIS.InitSession() with no parameters, the logout process works fine. So, I am trying to increase the timeout setting without breaking the logout function. Actually, I just tried THIS.InitSession(,28800) and the logout process worked correctly. So, now I need to confirm the timeout parm is getting set.

Thanks,
Steve

Gravatar is a globally recognized avatar based on your email address. re: InitSession Timeout Setting
  Rick Strahl
  Steve
  Jan 9, 2026 @ 10:54am

Make sure you're using the latest version (v8.4) - there was a bug fix recently that addressed session timeout issues.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: InitSession Timeout Setting
  Steve
  Rick Strahl
  Jan 9, 2026 @ 05:45pm

Hi Rick,
Yes, I am using v8.4

Gravatar is a globally recognized avatar based on your email address. re: InitSession Timeout Setting
  Rick Strahl
  Steve
  Jan 10, 2026 @ 05:08pm

I have found that if I use this: THIS.InitSession("PPDMSWeb,1800,.T.), the Logout.ppw (logout process) does not work.

Logout is something that you have to implement yourself typically (unless you use the User Manager process class). It should call Process.Authenticate("LOGOUT") which deletes the session entry and zeros out the local session. Make sure that's what you're calling and you're exiting from that code and don't run something else in that same request that recreates the session.

+++ Rick ---

© 1996-2026