Forums
This topic is locked
Simple code explanation
Posted 12 Nov 2003 15:07:44
1
has voted
12 Nov 2003 15:07:44 Martin Scullion posted:
Hi There I was just wondering about this chunk of the user login behaviour, could someone tell me what the FALSE check in the second IF statement is evaluating 'if(false or ......' ???If Session("MM_Username"

If (false Or CStr(Session("MM_UserAuthorization"


InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"

MM_grantAccess = true
End If
End If
The rest is straightforward it was just the FALSE I was curious about. Thanks for your help
Replies
Replied 12 Nov 2003 17:58:12
12 Nov 2003 17:58:12 Janusz Jasinski replied:
Saying that if the user has entered a username then set MM_frantAccess to true.
<pre id=code><font face=courier size=2 id=code>If Session("MM_Username"
<> "" </font id=code></pre id=code>
this checks if no username was entered...
Janusz
======================
janusz.monkey-it.co.uk
www.xlibris.co.uk
ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe
<pre id=code><font face=courier size=2 id=code>If Session("MM_Username"

this checks if no username was entered...
Janusz
======================
janusz.monkey-it.co.uk
www.xlibris.co.uk
ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe