[Phplib-users] How can I logout and correctly kill a session?
Brought to you by:
nhruby,
richardarcher
From: Robert V. O. <van...@un...> - 2002-07-18 17:49:53
|
Hello, Setting: My secure site has members that login using their store number as their user ID. We use this store number to retrieve online reports for the given store. Since some members have more than one store, I have created a link to a page logs them out (using $auth->logout();) so they can login under a different store number. Issues: My problem is that the loginform is displaying the 'Either your User ID or your Password are invalid. Please try again!' message when the form is displayed (after logging out). It is as though the phplib global $username is persisting. From there I can log back in as the same store, but if I change the store number and password, the login form again displays the invalid login message with the previous store number in the User ID field. Fix Attempt: I tried putting 'unset($username)' in the logout page code, but this doesn't fix invalid login message or allow me to log back in with a different store number. In fact, it no longer allows me to log back in with the same store number. The login form re-displays with a blank User ID field instead of being filled in. Question: How can I logout and correctly kill a session, so I can log back in without an invalid login message, or so I can log back in as a different user? Thanks, Bob Van UDI IS |