View Single Post
  #9 (permalink)  
Old 07-11-05, 05:48 PM
Lafa's Avatar
Lafa Lafa is offline
Newbie Coder
 
Join Date: Jul 2005
Location: Moss, Norway
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
as i said above, i know how the basic of both cookies and session worksa:

for an instant if you a match was made in db:
PHP Code:

$row $db->fetch_array("SELECT * FROM user WHERE user_auth='$username' AND user_first_name='$first_name'");


if(
$row) {
    
$_SESSION['username'] = $row[0]
    
$_SESSION['firstname'] = $row[1]

like that, but well thats what i know about session.

and not pretty much the same about cookie's so if you got something more advacne than that, it would help

thanks for all the reply's tho
__________________
TUXRocks, you dont.

Push it to the limit

Last edited by Lafa; 07-11-05 at 05:50 PM.
Reply With Quote