You are here: Re: weird session problem « PHP Programming Language « IT news, forums, messages
Re: weird session problem

Posted by isynclere on 08/16/07 15:48

On 16 Aug, 16:42, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 16 Aug 2007 17:35:02 +0200, <isyncl...@hotmail.com> wrote:
> > relevant code for login page
> > ================================
>
> Don't see no session_start() anywhere in this relevant code, don't see how
> the redirect is done/handled, etc...
>
> For the record: die()ing with a mysql_error() is offcourse OK in
> development, very sloppy and a possible security risk on an actual live
> site :)
>
>
>
> > if(mysql_num_rows($result)==0)
> > {
> > echo "<br /><p>incorrect email or password.</p>";
> > }
> > else
> > {
>
> <snip $_SESSION array filled>
>
> > }
> > }
> > echo "<p>redirecting to homepage.</p>";
>
> How?
>
> > ==============================
> > relevant code for homepage
> > ==============================
> > <!--show login if session not set, if set show user email-->
> > <?php
>
> session_start()?
>
> > if (isset($_SESSION['login']))
>
> --
> Rik Wasmus

sorry guys, yes every page has session_start() at the top.
redirect done with meta refresh.
as i said it works fine in safari but not in other browsers.

i will post complete code if it helps?

 

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

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