Anything you want to "remember" between page visits can be stored in a
cookie.  For example the most common is when a user logs on to your system.
They provide a username and password and you look up their user ID based on
that.  If it exists they have logged on and you stored the user ID in the
session

Session("UserID") = userID

On any page that you want to ensure the user is logged on you can see if
this value exists.  Or if that user does something like add an item to their
shopping basket you have their UserID already to store in your database.

The session data is all stored on the server so can't be seen or amended by
the client, however the session ID is stored as a cooking on the client so
that the correct session for that user can be accessed by ASP.

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Pam
Sent: 28 September 2005 11:12
To: [email protected]
Subject: RE: [ASP] Little Question


Can I inquire just a little further and ask for a couple of simple examples
where a session variable would be needed or useful?

Thanks,
Pam

> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] Behalf Of Adrian Forbes 
> - ITD
> Sent: Wednesday, September 28, 2005 7:47 AM
> To: [email protected]
> Subject: RE: [ASP] Little Question
>
>
> Session("MyNewInt") = 123
> Session("MyNewString") = "abc"
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ehtisham
> Sent: 28 September 2005 1:27
> To: [email protected]
> Subject: [ASP] Little Question
>
>
> Please tell me how to create a session variable.
>
> Thanks,
>






---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 


The contents of this email and any attachments are sent for the personal 
attention
of the addressee(s) only and may be confidential.  If you are not the intended
addressee, any use, disclosure or copying of this email and any attachments is
unauthorised - please notify the sender by return and delete the message.  Any
representations or commitments expressed in this email are subject to contract. 
 
ntl Group Limited



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to