Reply to Re: session problem

Your name:

Reply:


Posted by Rtenboer@gmail.com on 08/16/07 15:18

On Aug 16, 1:12 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 16 Aug 2007 11:58:18 +0200, Rtenb...@gmail.com
>
> <Rtenb...@gmail.com> wrote:
> > Hello to all again :)
>
> > i have a problem with a session
> > this is my index page what will check if you are logged in or not if
> > you are logged in it should be displaying the session username
> > <?php
> > if(!isset($_SESSION["logged"]))
> > {
> > well once i try to login it will redirect me to the index.php what is
> > correct
> > but now its should tell me on the index page what user is logged but
> > that isn't happening
>
> On _every_ request that uses a session you have to call session_start()
> before anything else. If you don't, no session is assumed & no $_SESSION
> array is filled.
>
> --
> Rik Wasmus

thx a lot .. :) problem solved

[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

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