Jump to content

Login Script


Unholy Prayer

Recommended Posts

I'm having more problems with my login script.  I'm successful logging in, but when I refresh my page or go to a different one, it says I'm logged in as someone else.  My friend just registered and when I refreshed the page it said i was logged in as his username.  This is my page header script:

<?php

$action = $_GET["action"];

$m_time = explode(" ",microtime()); 
$m_time = $m_time[0] + $m_time[1]; 
$starttime = $m_time;
session_start();
ob_start();
require_once('config.php');


include('constants.php'); 

if(!session_is_registered("username")){

      $user = "Guest";

  }

if(session_is_registered("username")){

     $user = $_SESSION['username'];

            $uidquery = mysql_query("SELECT * FROM vbb_members WHERE username='".$_SESSION['username']."'");

        $get=mysql_fetch_array($uidquery);

                 $uid=$get["uid"];


    }

 

Thanks in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.