Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    I have to close browser to completly log out web app....why is that?

    My company seems to have a web app, that allows them to view info of different hospitals and whenever someone now logs in to one hospital and click the log out button, then try logging into another hospital, the previous hospitals data still comes up. We have to actual close the browser itself then go back into the app, in order to log into the new hospital. Does anyone know why or have any ideas why we have to close the full broswer to be loggedd out completely? Any ideas on what would be causing this or how it could be resolved?

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,027
    Thanks
    2
    Thanked 315 Times in 307 Posts
    Either the URL of the page does not change and the page is not setup to prevent caching so the browser is using a cached copy of the page or the logout code is doing something incorrectly or there is an error in the logic and it is not clearing and/or setting up the variables (initial conditions) that tell the code to show the correct data.

    Edit: To test for the first possibility (cached page) force your browser to reload the page and see if the content is correct.
    Last edited by CFMaBiSmAd; 10-01-2009 at 03:43 PM.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #3
    New Coder
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks!, Will try

  • #4
    New Coder
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    is there a way around this or a quick fix that wouldn't cause the app to have to go back to the development team but more so something one person could handle?

  • #5
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Sounds to me like the first session - when you are logged into the first hospital - is not being cleared on log out. then when you log into the second hospital the session is still active (because the brwoser wasn;t closed down), and so the same values for the first hospital are available for the second one.

    Mistakey by the app designer.

    Best solution is to make sure that when logging out either the session is totally cleared or the values that are not needed for the 'logged in person' are deleted from the session.

    This is based on the assumption that the domain used to view both hospitals is the same. Likely the same scripts are being used but that is OK if the session has been cleared.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #6
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,027
    Thanks
    2
    Thanked 315 Times in 307 Posts
    Quote Originally Posted by mgreen84 View Post
    is there a way around this or a quick fix
    A way around what? Without a specific problem, there can be no specific solution. And if you found that forcing a page reload displays the correct information, you would need to bother to state that in your reply.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •