2476Active Server Pages: Session and Applicationhttp://www.asptutorial.info/learn/Session_Application.aspThe first time a user accesses to a our pages some connections and disconnections took place. During this process the server and the client will interchange information to identify each other. Due to this exchange of information our server will be able to identify a specific user and this information may be use to assign specific information to each specific client. This relationship between computers is call a session. During the time a session is active, it is possible to assign information to a specific client by using Session method. We will use an example to explain this method:ASP > Tips and Tutorials > Cookies and SessionsOct 10, 2006
Cookies are small text files that are placed on the visitor`s machine. You`ve probably been to sites where you were asked to register. One reason why you might be asked to register is so that the site administrator can keep track of how many times you`ve been to their site. Or, with another scenario, you`re going into a chat room and you are asked to enter a nick name. It`s very likely that both are using cookies to store this information.
XSess passes the entire session from one ASP webserver to another securely.
XSess consists of a function, and a few supporting functions, contained in an include file.
Include the script xsess.asp in any script from which you intend to transfer the visitor. Also place this script on the destination site. To transfer the visitor whilst retaining the session variables, call the function as follows
There are a wide variety of things you can do with cookies. They are used to store information about user, visited pages, last visits and etc. The main purpose of cookies is to identify users and possibly prepare customized Web pages for them.
Cookies are easy to create and retrieve using ASP.
They can be used to remember things about a user when they come back to your site. Cookies expire after a certain amount of time which you can set. Also, the clients browser must have cookies enabled for them to work.
A cookie is a small file that the server stores on the user's computer. Cookies are very useful and you can use them to store password, user last visit, etc.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.