|
|
|
|
|
| | |
|
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
When does "Super" <> "Super" |
From: |
Anchorman |
Date: |
6/7/2001 10:36:58 AM |
IP: |
24.164.53.1 |
I have a problem that I can't seem to figure out. I am writing information to a Cookie that is later read back, then I do a comparison with it to determine which options will be available to the user. Here is my code:
Dim cUserType
cUserType = Request.Cookies("UserInfo")("UserType")
if (cUserType = "Super") then
Response.Write "<b>You're In! :-)</b>"
else
Response.Write "<b>You ain't In! :-(</b>"
end if
It NEVER gets in ("You're In"). I have written little sections of code to print out the value of cUserType, and it prints "Super " (Notice the space at the end??) But, even if I compare the value to "Super " (with the space), it STILL never gets in. What am I doing wrong here? |
Follow Up - Re: When does - J. Paul Schmidt 6/7/2001 10:30:00 PM
|
|
|
|
|
|
|
|
|
|
|
|