Link to home
Start Free TrialLog in
Avatar of Loganathan Natarajan
Loganathan NatarajanFlag for India

asked on

Session Problem

hi guys,

I am using php4.3.4 version.
In my application, I have been creating session variable during the login process. (i.e $_SESSION['login_name']).

When I login with multiple users in the application with same system (computer), I have been facing the the session variable values are exchanging

What i need to clarify is:
-- How my system (computer) identifies different session variables?
-- Is there any connection with my local setting to SESSION? (ofcourse

SESSION will be created at server)
-- Is there any relationship with client , session variables?

 Thanks for advance
Avatar of donel
donel

Hi Friend!

You may try other browser, this mean one browser one account name for login.
so, you may not got the problem and if you don't i am not sure if another way can do.


this what i have tried to do with multiple login account in one system.

thanks & best regards,
bj mac donel
I forget to tell you what i have used.

1/ i.e
2/ firefox
3/ opera

so, i can login 3 account on my computer with different session.

I think only this way.

i concur with donel and i think that it  depends on your browser, browsers have different behavior in handling with sessions, try to run the code below on different browsers(2 windows for firefox, 2 wndows for opera, 2 windows for IE6) notice that the 2 fire fox browsers displays the same session id and so with opera, while the 2  IE browsers  produces 2 different session id.

==========
<?php
session_start();
echo "Session ID: ".session_id();
session_destroy();
?>
ASKER CERTIFIED SOLUTION
Avatar of virmaior
virmaior
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial