Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

User authentication with session variables

General discussions related to php

Moderators: macek, egami, gesf


Postby ruturajv » Tue Apr 15, 2003 2:10 am

Code: Select all

Now check if the variable is assigned
Code: Select all
if (variable == $_SESSION['variablename'])
do stuff for true
} else {
do stuff for false

I hope this helps

The session_register('variablename') will create $variablename in sessions array
User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

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