Page 1 of 1

Sessions and Cookies - PHP

Posted: Thu Mar 03, 2005 8:07 am
by MadneM
Hey, I'm developing a script using frames - no comments please....

and i basically need to be able to use sessions or cookies to store temporary data in, however due to the restraints on the session and cookie functions ie, cant initiate after output has already been sent, how can i possibly get either cookies or session variables to work? I know i could store my data in a database but then that produces lag and unnecesarily stored data, anybody found a way round this or can think of a different way to store this temporary data?

Thanks

MadneM

Posted: Thu Mar 03, 2005 8:12 am
by feyd
solve the issue of why you can't get sessions/cookies after output starts:

viewtopic.php?t=1157


Someone will no doubt say something about ob_start() (output buffering). Which is a band-aid approach to the problem.