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

Posted by Rik on 08/16/07 16:30

On Thu, 16 Aug 2007 17:48:40 +0200, <isynclere@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
>> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> Don't see no session_start() anywhere in this relevant code, don't se=
e =

>> how
>> the redirect is done/handled, etc...
>>
>> > if(mysql_num_rows($result)=3D=3D0)
>> > {
>> > }
>> > 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 y=
ou =

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

 

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

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