NetTalk Central

Author Topic: Clear login entries after logout  (Read 3290 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Clear login entries after logout
« on: August 22, 2007, 01:22:30 PM »
Hi,

I use a login similar to Basic Login Example 3.  Both the example and my login have the same problem.  If the user clicks login after logging out (but not closing the browser), the log in fields are automatically primed with the last username  and the password used.  I have tried priming the entry fields with '' and using

CLEAR(Loc:login)
p_web.DeleteSessionValue('Loc:login')

in a couple of places but without success.

What is the best method and best location to clear the entry fields each time the user calls the login page?

Many thanks.

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Re: Clear login entries after logout
« Reply #1 on: August 22, 2007, 05:44:51 PM »
Hi Casey,

In the MenuOnLeft procedure there is a routine called logoutform.

Place code similar to the following:

    p_web.SetSessionValue( 'loc:Login', '' )
    p_web.SetSessionValue( 'loc:Password', '' )

to clear the values for the login and password when the user logs out.
Gregory C. Bailey

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Clear login entries after logout
« Reply #2 on: August 23, 2007, 01:35:28 PM »
Thanks, George