From: Paul V. <pau...@gm...> - 2007-10-03 17:39:23
|
Hi, On my test/development box I have two 'instances' of gitstat. One that covers the kernel and one that covers Wine. We were using $_SESSION['apid'] to hold the email address of the users that's logged in. Needless to say that when I logged in to 'Kernel', 'Wine' also thought that I was logged in and looking at the email-address it shows the 'Kernel' one. Confusion altogether. I've fixed this by introducing: $_SESSION[$GSTAT[GIT_PROJECT_NAME]] to hold the email address of the logged in user. I of course rely here on the fact that project names will most of the time be different. I had to fix another problem after this. When I login to both everything is fine but when I logout of one I was also 'logged out' of the other because the session was destroyed. I've fixed that by introducing: $_SESSION['sessioncount'] that's incremented on login() and decremented on logout(). The session is only destroyed when $_SESSION['sessioncount'] reaches 0. It's not perfect but it works for me. Cheers, Paul. |