Links for php scripts

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 27
Joined: Sat Jul 05, 2003 5:08 pm
Location: england uk

Sat Jul 26, 2003 10:10 am

hey, i know how to make a login script using databases, and using a cookie after the login has been confirmed. What code do i need to type for the following:

1) with cookies after you login setCookie is used. what do i need to type with session id.

2) on the site what code do i need to use when using session ids to do the equivilent of this:

if ($cookieusername == "nathan"){
print ("hello nathan");
print ("you are not admin");

Post Reply