Reply to Re: [PHP] session cookies

Your name:

Reply:


Posted by "Gustav Wiberg" on 09/01/05 23:58

Hi there!

Try using ob_start() and then set sessions, and then user HEADER...

http://se.php.net/manual/sv/function.ob-start.php

/G
@varupiraten.se

----- Original Message -----
From: "Philip Hallstrom" <php@philip.pjkh.com>
To: "Jasper Bryant-Greene" <jasper@bryant-greene.name>
Cc: "php list" <php-general@lists.php.net>
Sent: Thursday, September 01, 2005 10:43 PM
Subject: Re: [PHP] session cookies


>> Philip Hallstrom wrote:
>>> Then use an HTML meta refresh (or javascript, just not
>>> Header("Location...) to redirect them to another page.
>>
>> Why not header("Location...")? Just out of interest -- it's always worked
>> for me, and it's a much better way to redirect users for many reasons[1]
>> (like not breaking the back button).
>>
>> [1] http://www.w3.org/QA/Tips/reback
>
> For some reason (and maybe it's no longer true) I've had problems setting
> a cookie and then doing a header("Location..."). Seems some browsers
> wouldn't pick up the cookie.
>
> Now... when this happened (could have been as early as 98) I don't recall,
> but it's always stuck with me and I usually end up spitting back a little
> javascript to send the user wherever it is I want them to go...
>
> -philip
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

[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

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