hi php code please help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

hi php code please help

Post by reecec »

hi


please could someone help with cookies

setcookie( "user", "$user", time()+7200, "/", "", 0 );


if they want to log in to another account and it adds another cookie

my sql rows is controled by the value $user from cookie


so if they log in on to differnet accounts they will have 2 cookies with two differnt users stored it will load data for both


so i think i need another way to do this please

thanks

reece
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
Milan
Forum Commoner
Posts: 97
Joined: Wed May 17, 2006 6:08 pm

Post by Milan »

you should remove "" from the "$user" and i dont think it will load the two sets of info as they will have different session ID's on diferent computers.

Hope that helps.
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

hi

Post by reecec »

thanks

sorry i ment load two sets from the same pc if someone logs on two diferent accounts or is this something i dont need to worry about

thanks reece
Flamie
Forum Contributor
Posts: 166
Joined: Mon Mar 01, 2004 3:19 pm

Post by Flamie »

dont worry about it, like it shouldnt be doable anyway ;o
Post Reply