Web Connection
Logout and InitSession Question
Gravatar is a globally recognized avatar based on your email address. Logout and InitSession Question
  Steve
  All
  Oct 19, 2025 @ 03:27pm

Hi Rick,
I am using UserSecurity authentication mode. It's working. However, I just noticed something odd that has me stumped. When I use THIS.InitSession() with no parameters, the Logout function works and the current user is logged out when I click on the Sign Out option. But if I use THIS.InitSession("PPDMSWeb",1800,.F.), the Logout() function is called, but the current user is NOT logged out. Any idea why this is happening? I'm sure I'm doing something wrong, just not sure what.

  • With this approach, the Logout.ppw function DOES NOT WORK.
    *THIS.InitSession("PPDMSWeb",1800,.T.)

  • With this approach, the Logout.ppw DOES WORK!
    THIS.InitSession()

Thanks,
Steve

Gravatar is a globally recognized avatar based on your email address. re: Logout and InitSession Question
  Rick Strahl
  Steve
  Oct 20, 2025 @ 11:29am

Hmmm... there was some work done on this recently and now I'm wondering if something there is breaking. The recent fix was to ensure new cookies are being created for permanent sessions (ie the .t. parameter) when none exist. That means a new Cookie is created, but in theory at least that cookie should no longer be associated with any account information.

I have to check that specific scenario and review...

Are you on the latest version (8.4) as there were changes in the previous 8.2/3 release, which then fixed a few related issues in 3.4.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Logout and InitSession Question
  Steve
  Rick Strahl
  Oct 20, 2025 @ 01:01pm

Yes, I am on v8.4 now.

© 1996-2025