470,631 Members | 1,712 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

Overlapping of Users Accounts in a PHP/MySql site

Dear Group Readers,

A website written in PHP/MySql uses cookies for users' login. Sometimes
users report that they view somebody else's account info when they
login to their account. Do you have any idea why it may happen?

I thought this would be because of caching problem of users' ISPs and
tried all No-Cache META ways like putting another header at the end
(http://www.htmlgoodies.com/beyond/nocache.html) but complaints didn't
stop.

FYI here is the cookie setting part:
setcookie("[COOKIENAME]", $cookie_val, 0, "/");

and in all other pages it reads the username from database and goes on:
SELECT * FROM [USERS] WHERE UserName='$cookieuser'
Really appreciate your help,
-sjariri

Jul 17 '05 #1
0 1391

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Phil Powell | last post: by
reply views Thread by bruce | last post: by
3 posts views Thread by Phil Sandler | last post: by
3 posts views Thread by Peter Jenkins | last post: by
2 posts views Thread by Brian Henry | last post: by
2 posts views Thread by Liam Gibbs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.