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 16:49

On 16 Aug, 17:30, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 16 Aug 2007 17:48:40 +0200, <isyncl...@hotmail.com> wrote:
> > 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...
>
> >> > if(mysql_num_rows($result)==0)
> >> > {
> >> > }
> >> > else
> >> > {
>
> >> <snip $_SESSION array filled>
>
> >> > }
> >> > }
> >> > echo "<p>redirecting to homepage.</p>";
>
> >> > relevant code for homepage
> >> > <!--show login if session not set, if set show user email-->
> >> > <?php
>
> >> session_start()?
>
> >> > if (isset($_SESSION['login']))
> > sorry guys, yes every page has session_start() at the top.
> > redirect done with meta refresh.
>
> As said earlier, an HTTP redirect is infinitely better & more reliable.
>
> > as i said it works fine in safari but not in other browsers.
>
> > i will post complete code if it helps?
>
> Well, complete code could be overkill, but saves time asking for stuff you
> left out :P Also, if this is publically online somewhere, an URL to
> examine headers to & from the site could come in handy.
>
> (PS: don't quote signatures)
> --
> Rik Wasmus

thanks, i can give you the public url, but that is working okay. its
only on localhost that i have a prob..the code on the public server
and localhost are the same too.

url:
http://php.cs.cse.dmu.ac.uk:6789/p06256407/index.php

if you wish to login use amy@amy, pass:amy.

tia.

 

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

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