sessions

Links for php scripts

Moderators: macek, egami, gesf

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

sessions

Postby nathanwebb6 » 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");
}else{
print ("you are not admin");
}

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests

cron