[thelist] More ASP problems - Checking for cookie existance

Christopher Ditty cditty at mlgw.org
Thu Jan 30 09:00:01 CST 2003


Thanks, but unfortunately the error is on the line above that.  Sorry
for not mentioning that earlier.

Chris

>>> martyn.haigh at virgincosmetics.com 01/30/03 08:49AM >>>
I haven't tested this - but it looks as if you want to get rid of the
response.write in the response.redirect statement.

if(null(Request.Cookies("sessLoggedIn"))) then
Response.Redirect(Application(failureUrl) & "?code=4")
end if

hth

Martyn Haigh

Site Developer
The Virgin Cosmetics Company
City Fields, Chichester, West Sussex PO20 2FP
tel: 01243 622282


-----Original Message-----
From: Christopher Ditty [mailto:cditty at mlgw.org]
Sent: 30 January 2003 14:45
To: thelist at lists.evolt.org
Subject: [thelist] More ASP problems - Checking for cookie existance

Hello again.  I am trying to check for the existence of a cookie in my
ASP app.  I cannot get ASP respond like I think it should.  I have
placed the following code in the global.asa file in the sub
Application_Onstart(), but when the page is loaded, I get error
8002802b
Element not found.

I tried searching goggle for an answer, but the problems I find are
not
the same as mine.  I have tried IsEmpty, Null, Empty and each one
returns errors.

Can anyone offer any advice?

Chris


[code]
if(null(Request.Cookies("sessLoggedIn"))) then
Response.Redirect(response.write(Application(failureUrl) & "?code=4"))
end if
[/code]

--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !


DISCLAIMER: The information in this email is confidential and may be
legally
privileged. It is intended solely for the addressee. Access to this
email by
anyone else is unauthorised. If you are not the intended recipient,
any
disclosure, copying, distribution or any action taken or omitted to be
taken
in reliance on it, is prohibited and may be unlawful.


--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !





More information about the thelist mailing list