Click to See Complete Forum and Search --> : Do different browsers use different session_id?


louie_nz
04-25-2005, 09:42 PM
Hi, people! It is the first time I build up a website using php-mysql combo!(I am just a graduate who wanna try on php). I stuck on login in stage now. I can succesfully login to my created website. However, the problem is, for example, I already login using an account (say: A). Then, I try to open another browser and try to login using different login account (say B, modelling multiple users login at the same time). However, the browser even doesn't show me the login page and ask me my account name and password, instead it automatically take me to account A. Then, I can see all the information of account A. It's apparently a mistake. Really weird!

I think all the browser should create and use different session_ids, right? I think what I have done before this stage is right. I can display or insert data from or to database. anyway, why is that? can anyone help me that? :confused:

SpectreReturns
04-25-2005, 09:47 PM
In my experience, sessions have never carried between browsers.

imnoguru
04-25-2005, 10:28 PM
Maybe you have a cookie in that script somewhere???

louie_nz
04-25-2005, 10:40 PM
To imnoguru: U mean I already setcookie somewhere in my login script and it made the error happen? how come, why?

NogDog
04-25-2005, 10:43 PM
Maybe you have a cookie in that script somewhere???
Yes, PHP sessions normally use cookies.

What might work would be to use IE for one test account and Firefox for the second.

louie_nz
04-25-2005, 10:46 PM
To SpectreReturns: well, yes you are right. I am just confused on that. My previous title did sound silly. then how is the new title? And u think what could be my problem? Thanx.

louie_nz
04-25-2005, 11:05 PM
Yes, PHP sessions normally use cookies.

What might work would be to use IE for one test account and Firefox for the second.

Yes, I just tried it as u said. It did give the output that I want. However, how can i solve the problem if use IE only or mozilla only? any help? using session_name?