Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same session_id() from two different users

Status
Not open for further replies.

grovemedia

Technical User
Dec 15, 2003
22
US
What would cause two different users on two different computers come up with the same session_id. I am using this code on each page:
session_start();
ob_start();
header("Cache-control: private");
$sessionID=session_id();
And then writing $sessionID to a database and calling from the database later by their $sessionID. Well, its returning a recordset with two rows since there were two of the same session_id in the database. I'm kinda new to PHP so any help would be greatly appreciated. Thanks.
 
The 32 character id is the session_id value. Is that what you mean.
 
Yes, thank you. That's what I meant.

Have you tried clearing all cookies on both browsers? I've had some weird stuff happen when developing session-based scripts that doesn't happen in production. Clearing cookies cures a lot of ills for me.


You might also take a look at faq434-2037. That FAQ describes doing something similar to what you seem to by trying.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top