Reply to Re: [PHP] $_SESSION and header()

Your name:

Reply:


Posted by "Alessandro Rosa" on 06/26/05 18:10

Does (c) have at the top of its page:
<?php session_start(); ?>

André


> You have to pass the session ID between pages, either by setting
> session.use_cookies = 1 (so that the session ID is passed using a
> cookie where possible) or append the session ID to the URL you are
> redirecting to as part of the query parameters.

Paul


Thank you both!
I did always use session_start() and finally I also already use
the second option Paul addressed, in order to overcome the
issues raised by header(). Not in the same terms, but the URL
parameters was my idea too.

So could I guess that this is there's no direct remedy to
avoid header() delete sessions variables? :-)

Alessandro

[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

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