A
Anonymous
Guest
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");
}else{
print ("you are not admin");
}
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");
}else{
print ("you are not admin");
}