|
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]
|