RE: ASP assistance please...
by "Krimm, Nik" <nik.krimm(at)marchFIRST.com>
|
| Date: |
Tue, 13 Jun 2000 09:44:32 -0500 |
| To: |
"'Andrew Browne'" <andrew(at)pbm.co.za>, "'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org> |
| Cc: |
"'Rossi Designs'" <webmaster(at)rossidesigns.net> |
| |
todo: View
Thread,
Original
|
|
All right - the following is from asp.superexpert.com, a useful resource on
the web. I think the idea is that the data is saved on the server, but a
reference to that data is saved on the users machine as a cookie.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
http://asp.superexpert.com/code/code.asp?cid=96
A Session variable is a variable that remains in a Web server's memory
throughout the time a user visits your Web site. Once a value is assigned to
a Session variable, the Session variable will retain that value on every
other page the same user requests.
It's important to understand that Session variables are created relative to
a particular user. A distinct variable is created in the Web server's memory
for each and every user who visits a page that creates a Session variable.
One user cannot read or modify the Session variables created for another
user.
Session variables rely on cookies. If a visitor has a browser that does not
support cookies, or the visitor has disabled cookies, then Session variables
will fail to work for that user.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++
-----Original Message-----
From: Andrew Browne [mailto:andrew(at)pbm.co.za]
Sent: Tuesday, June 13, 2000 1:42 AM
To: 'hwg-languages(at)hwg.org'
Cc: 'Rossi Designs'
Subject: RE: ASP assistance please...
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
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.