Hi all,
I have an application which do the following:
the user login, and submit a file which is stored in the corresponding user's directory.
I stored the successfully login user's userid in a variable call valid_user, and i use session_register() to register it.
however, when I have the second user login (in another browser), the session variable change!! As a result, the system cannot differentiate among user.
in case i cannot explain clearly above, here is an example
userid directory valid_user's value
1. login as user A
User A 123 A
2. login as user B in another browser
User B 456 B
the problem is now when user A submit a file, it will go to user B's directory (456). Because the valid_user's value is B.
Any clue??? Please help!
thanks in advance