Reply to Re: newbie session question

Your name:

Reply:


Posted by Morlaath on 08/20/07 00:43

> Tough to say since you haven't shown us the code for verifyUser() or
> the code on your index page.

I honestly don't think I need to paste all that code here or anywhere
else to really explain what I am trying to do.

login page posts to loginCheck.php

loginCheck connects to the database etc, performs query, gets result
set stored in $row, verifies that the user/pass is good. All that
works just fine. If the user/pass is good then I call the following
function:

function setSession($user, $id) {
session_start();
$_SESSION['username'] = $user;
$_SESSION['uid'] = $id;
$_SESSION['logged'] = true;
}
Once this is done the db connection is closed and 0 or -1 is
returned.

then the code I posted above is executed.

[Back to original 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

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