...

View Full Version : Session problem



shaileshpatil
02-05-2010, 07:40 AM
Hello

I have a problem when dealing with sessions in php.
I have hosted few application on same server.
When i open 2 applications in the same browser, session values are shared.
for example: i have application A and B. both the application has same authorization procedure but are connected to different database. After i login, the username and userid are shared between 2 application.
If i log out from 1 application both are signed out automatically.

how can i avoid it?

Thanks in advance.

Phil Jackson
02-05-2010, 09:35 AM
long time since i've used sessions but im guessing its to do with you opening a new tab using the same browser? Well I believe thats the main jist of using sessions. If it is doing the same using a different browser ( which i dont think it will ) you could do something like;



$_SESSION[md5($_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR'])] = $val;


just thinking out loud.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum