Reply to Re: cookies

Your name:

Reply:


Posted by Jerry Stuckle on 05/10/07 12:36

Jon Slaughter wrote:
> "Johnny BeGood" <jbg@jbg.net> wrote in message
> news:kAy0i.19511$j7.373298@news.indigo.ie...
>> Hi Jon,
>>
>> I started here - http://www.w3schools.com/php/php_cookies.asp - it gives a
>> good idea on how to get started.
>>
>>
>
> Yeah, I used some of that. But my main issue is that not the basics. Its
> that I'm trying to create cookies after page content have been generated. I
> have solved the issue but doens't seem that great. Essentially I redirect to
> a page that saves the cookies and then that page redirects to the page I was
> going to in the first place. I guess I could put the page in a session
> variable and use a generalized cookie saver.
>
> Just seems like its not even close to being the optimal solution.
>
> Thanks,
> Jon
>
>
>

Why do you have to do it AFTER page content has been generated?

Restructure your page and do it before you generate the content. Or, as
Micha indicated, buffer your output and send it later.

But I've always been able to send cookies before the page - just
sometimes it takes a little work and planning.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация