Page 1 of 1

hi php code please help

Posted: Wed May 24, 2006 3:19 pm
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.

Posted: Wed May 24, 2006 3:33 pm
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.

hi

Posted: Wed May 24, 2006 4:20 pm
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

Posted: Wed May 24, 2006 4:59 pm
by Flamie
dont worry about it, like it shouldnt be doable anyway ;o