[BNM] PHP & AJAX Login script

Ali ali at nubz.com
Tue Jul 10 16:11:11 BST 2007


looks to me like your doing the if test on line 17 again if the page refreshes:

if (($_POST['username']=="admin") AND ($_POST['password']=="admin")) a quick hack would be to include the session logged inif ((($_POST['username']=="admin") AND ($_POST['password']=="admin")) || $_SESSION['verified']=="yes") hthAli
  ----- Original Message ----- 
  From: andrew holway 
  To: Brighton New Media 
  Sent: Tuesday, July 10, 2007 3:06 PM
  Subject: [BNM] PHP & AJAX Login script


  Hi, Im trying to make a simple ajax login script for use as an
  include. Problem is when I refresh the page, it logs me out! You can
  see it working(ish) at

  http://www.lloydsenergy.co.uk/10014

  username and password is admin

  code is here->http://rafb.net/p/DDeMOi87.html

  Im pretty fresh to php so sorry if I'm just being stoopid.

  Andrew
  moonet.co.uk
  -- 

  BNM Subscribe/Unsubscribe:
  http://www.brightonnewmedia.org/options/bnmlist

  BNM info/archives:
  http://www.brightonnewmedia.org/

  BNM powered by Wessex Networks:
  http://www.wessexnetworks.com


  -- 
  No virus found in this incoming message.
  Checked by AVG Free Edition. 
  Version: 7.5.476 / Virus Database: 269.10.2/893 - Release Date: 09/07/2007 17:22




More information about the BNMlist mailing list. Powered by Wessex Networks