Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

sessions

Links for php scripts

Moderators: macek, egami, gesf

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");
}
nathanwebb6
New php-forum User
New php-forum User
 
Posts: 27
Joined: Sat Jul 05, 2003 5:08 pm
Location: england uk

Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron