RE: ASP assistance please...
by Patty Toretti <ptoretti(at)home.com>
|
Date: |
Tue, 13 Jun 2000 07:36:47 -0700 |
To: |
Andrew Browne <andrew(at)pbm.co.za> |
Cc: |
"'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org> |
In-Reply-To: |
ANDREW |
|
todo: View
Thread,
Original
|
|
What about Javascript session variables? I'm almost certain I've seen them
used to maintain state --- of course, just for the length of the session,
not BETWEEN sessions.
At 08:42 AM 06/13/2000 +0200, Andrew Browne wrote:
>With regard to session cookies, Active Server Pages Pages Unleashed states
>that "The cookie created for each user is named ASPSESSIONID ... However,
>the ASPSESSIONID cookie is needed to use session variables. The server
>uses the ASPSESSIONID cookie to associate the proper session variables
>with the proper user". This seems to indicate that session variables are
>stored in server memory and that the cookie is used to keep track of the user?
>
>Also, where are these session cookies stored? The self-same book states
>that "The session variables themselves are not stored on the user's
>browser." It then states "Because cookies aren't compatible with all
>browsers, you should be cautious in using the session object". If the
>cookie resides on the server and is read by the server, surely the browser
>is not involved in the process until the the HTML is passed back to the
>client browser. In which case, the browser has not interacted with the
>session cookie at all?!
>
>--Andrew
>----------
>From: Rossi Designs[SMTP:webmaster(at)rossidesigns.net]
>Reply To: Rossi Designs
>Sent: 13 Jun 2000 03:39
>To: Steve Cost; hwg-languages(at)hwg.org
>Subject: Re: ASP assistance please...
>
>NO that much is FACT, ASP stores sessions in cookies, and unlike PHP you
>don't have the option to change it.
>
>Rossi Designs
>PO Box 1084
>Holly Hill, FL 32125-1084
>Phone : (904) 226-8979
>URL : http://rossidesigns.net
>----- Original Message -----
>From: Steve Cost <scost(at)neo.rr.com>
>To: <hwg-languages(at)hwg.org>
>Sent: Monday, June 12, 2000 5:49 PM
>Subject: Re: ASP assistance please...
>
>
>| Uh .. I thought session variables and objects are stored in server memory
>| (for the life of the session), whereas cookies are stored on the client's
>| machine/browser (for whatever life is specified in the response stmt.).
>And
>| cookies are not used to transfer parameters from page to page. Am I
>missing
>| something? Nik's response seems right on.
>| Steve Cost
>|
>| ----- Original Message -----
>| From: Rossi Designs <webmaster(at)rossidesigns.net>
>| To: Krimm, Nik <nik.krimm(at)marchFIRST.com>; 'Geuka Amusa'
>| <amusa(at)easeinternet.com>; <hwg-languages(at)hwg.org>
>| Sent: Monday, June 12, 2000 3:00 PM
>| Subject: Re: ASP assistance please...
>|
>|
>| > The downside is that ASP sessions are stored in cookies.
>| >
>| > Rossi Designs
>| > PO Box 1084
>| > Holly Hill, FL 32125-1084
>| > Phone : (904) 226-8979
>| > URL : http://rossidesigns.net
>| > ----- Original Message -----
>| > From: Krimm, Nik <nik.krimm(at)marchFIRST.com>
>| > To: 'Geuka Amusa' <amusa(at)easeinternet.com>; <hwg-languages(at)hwg.org>
>| > Sent: Monday, June 12, 2000 12:06 PM
>| > Subject: RE: ASP assistance please...
>| >
>| >
>| > | You can do two things Geuka:
>| > |
>| > | 1. You can use APS's session variables that will persist for the
>user's
>| > | whole session.
>| > |
>| > | to store:
>| > | Session("form_result")=result_to_store
>| > |
>| > | to read:
>| > | response.write Session("form_result")
>| > |
>| > | You can see more at:
>| > | http://asp.superexpert.com/code/code.asp?cid=96
>| > |
>| > |
>| > | 2. You can use HTML hidden input type to pass the value from page to
>| page
>| > | (i.e. <input type="hidden" name="name" value="value">)
>| > |
>| > |
>| > | Out of the two options, the ASP solution is more powerful, but if you
>| are
>| > | just passing a variable from one page to another, then the HTML hidden
>| > works
>| > | just as well. ASP's session variable benefit is more pronounced when
>| you
>| > | have to pass the info over several pages...
>| > |
>| > | Hope this helps
>| > |
>| > |
>| > | > Nik Krimm
>| > |
>| > |
>| > |
>| > |
>| > | -----Original Message-----
>| > | From: Geuka Amusa [mailto:amusa(at)easeinternet.com]
>| > | Sent: Monday, June 12, 2000 9:54 AM
>| > | To: hwg-languages(at)hwg.org
>| > | Subject: ASP assistance please...
>| > |
>| > |
>| > | Hello All,
>| > |
>| > | I need some ASP help. I have a form that posts to an ASP page. On
>the
>| > ASP
>| > | page I am using the following code to grab the value of specific form
>| > | fields:
>| > |
>| > | <% If Request.Form("xy") <> "" Then %><B><%= Request.Form("xy") %></B>
>| > | <% End If %>
>| > |
>| > | This part works great. Here's the problem. The ASP page contains a
>| form
>| > | that submits some of the values that the above ASP code grabbed from
>the
>| > | previous page. How do I include some of the previous page values as
>| > hidden
>| > | form fields so that they can be submitted by another form?
>| > |
>| > | Thanks
>| > |
>| > | Geuka
>| > |
>| >
>| >
>|
>|
>|
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA