what I meant was just keep the following line:
Response.Write (Session("stest"));

It proves the Session variable's contents survive between pages.

- Peter H.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 25 July 2002 17:25
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] OT: please help!



I don't know my ASP from my elbow, but not sure of the logic there.  If you
just comment out the splice line, the session variable is being created 5
lines up.  How does that prove it exists between pages?


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------



                    "Peter Harrison"
                    <peter.harrison@timeles        To:
<[EMAIL PROTECTED]>
                    sguru.com>                     cc:
                                                   Subject:     RE: [
cf-dev ] OT: please help!
                    07/25/02 05:22 PM
                    Please respond to dev





ok, it exists between pages. (commenting out the splice line proves that)

What would I put in the global.asa to declare that session variable?

Thanks.

- Peter "Hairless" Harrison


-----Original Message-----
From: Russ 'Snake' Michaels [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2002 17:06
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] OT: please help!


are you sure it exists and is being saved from the last page, can u display
it. Have you setup sessions in your global.asa

-----Original Message-----
From: Peter Harrison [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2002 16:56
To: Dev@Lists. Cfdeveloper. Co. Uk
Subject: [ cf-dev ] OT: please help!
Importance: High


Hi people

Sorry for the OT.

I'm tearing my hair out with this one.

Copy and paste the following into splice.asp (or whatever):

<%@LANGUAGE="JAVASCRIPT1.3"%>
<%
           Session("stest") = new Array();
           Session("stest")[0] = 0;
           Session("stest")[1] = 2;
           Session("stest")[2] = 4;
           Session("stest")[3] = 6;
           Session("stest").splice (1, 1);
           Response.Write (Session("stest"));
%>

View it, and it gives you "0,4,6" (this is good)

Now comment out the lines as follows:

<%@LANGUAGE="JAVASCRIPT1.3"%>
<%
           // Session("stest") = new Array();
           // Session("stest")[0] = 0;
           // Session("stest")[1] = 2;
           // Session("stest")[2] = 4;
           // Session("stest")[3] = 6;
           Session("stest").splice (1, 1);
           Response.Write (Session("stest"));
%>

and refresh the page in your web browser. I'd expect it to give "0,6", but
instead it gives a 500 error:
Error Type:
(0x8000FFFF)
Catastrophic failure

Why can't I splice an existing Session array variable?

HELP!

Regards

Peter Harrison
Software Engineer and Consultant
Professional Services Department
NetShift, Kennet Side, Newbury, Berkshire, RG14 5PX, UK
Tel: +44 (0) 1635 568 800           Fax: +44 (0)1635 568 850
[EMAIL PROTECTED]                    www.netshift.com
Email Disclaimer - see http://www.netshift.com/disclaimer.html


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]







--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


Reply via email to