Results 1 to 2 of 2

Thread: log off problem!

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Unhappy

    I have 5 different sites with different web addresses running on my webserver, all of these sites require a user to log on, (I store names etc. in session variables)
    I have managed to let the user log in at one site and stay logged in throughout the rest of the sites by using parameters!

    My problem is when a user logs out on one site all the session variables on the other sites should abandon too! How do I accomplish this????

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Just a guess here because I've never done it...
    instead of using session variables use a unique ID which is stored in a hidden field and passed in the query string.

    Then have a database which is common to all 5 sites/servers and contains a "loggedin" status flag against the ID. Each page checks the status and the status flag is set to false when the user logs out of any one of the 5 sites.
    Mark
    -------------------

Posting Permissions

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



Click Here to Expand Forum to Full Width