You are here: Re: Problems with PHP and sessions « PHP Programming Language « IT news, forums, messages
Re: Problems with PHP and sessions

Posted by PHP on 05/14/05 01:52

> My index.php looks like this:
>
> <?PHP
>
> if(!empty($_COOKIE["PHPSESSID"]))
> {
> session_start();
> $email = $_SESSION["email"];
> $psw = $_SESSION["psw"];
> }
>
> ... blaa... ?>
I have found my problem - I should not have a session_start() in the
index.php also as this overwrites the existing one. That took me some
time to understand! I thought I should have session_start on all pages.

 

Navigation:

[Reply to this 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

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