Web Connection
OnCheckForAuthentication()
Gravatar is a globally recognized avatar based on your email address. OnCheckForAuthentication()
  Joe Baisa
  All
  Feb 8, 2018 @ 07:20pm

I've been working on a Web Connection 6.10 project for the last 6 months, so I consider myself a rookie.

The user sign-in has been working all this time. Suddenly OnCheckForAuthentication() returns .F. when I try to access a page beyond the page after logging in.

Specifically, it's this call in OnCheckForAuthentication(): lcUserName = Session.GetSessionVar(this.cAuthenticationUserSecurityKey)

this.cAuthenticationUserSecurityKey contains "_AuthenticatedUser"

At the initial login, lcUserName is corrrect. Going to other pages that checks for authentication, GetSessionVar() returns blank.

Is this a session timeout issue? Any guidance/suggestion would be greatly appreciated. Thanks.

Gravatar is a globally recognized avatar based on your email address. re: OnCheckForAuthentication()
  Rick Strahl
  Joe Baisa
  Feb 9, 2018 @ 12:06am

That sounds like a corrupt session file. Pack or delete the Session file and see if the problem goes away. Also make sure the session key field is 17 characters wide and not shorter. If you have an older application creating the wwSession table it'll create a key field that is shorter.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: OnCheckForAuthentication()
  Joe Baisa
  Rick Strahl
  Feb 9, 2018 @ 03:35am

Rick,

Thank you. That did the trick. You saved me from doing a complete re-install.

Gravatar is a globally recognized avatar based on your email address. re: OnCheckForAuthentication()
  Rick Strahl
  Joe Baisa
  Feb 9, 2018 @ 02:48pm

Any idea what was wrong? Was the file corrupt or wrong key size?

+++ Rick ---

© 1996-2024