answersLogoWhite

0

The best method for overcoming HTML's stateless-ness (?) is by storing information in the $_SESSION variable. Another popular (although less secure) method is with the $_COOKIE variable.

Using the $_SESSION variable:

The $_SESSION variable is a way to maintain session specific information. While any kind (or amount) of information can be stored, I personally only use it to store a user's ID, which I can reference to grab things like site permissions from a database record. This keeps unnecessary server overhead down. The session is destroyed as soon as the user's browser is closed.

Reserved Variable: http://www.php.net/manual/en/reserved.variables.session.php

Session Reference: http://au2.php.net/manual/en/refs.basic.session.php

Session Functions: http://au2.php.net/manual/en/ref.session.php

Using the $_COOKIE variable:

The $_COOKIE variable allows you to store an associative array of values on a user's PC. This information is not destroyed when the user closes their browser and remains persistent until either the cookie expires (can be set for up to 1 year) OR the user clears their browser history and settings. DO NOT store account information such as usernames, ID's and passwords in a cookie.

Reserved Variable: http://www.php.net/manual/en/reserved.variables.cookies.php

W3Schools Tutorial: http://www.w3schools.com/PHP/php_cookies.asp

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you overcome this problems of c language?

Examine it very carefully.


Transfer devices called cloning are used to overcome problems in getting DNA into cells?

Vectors


What are the problems that can occur with the assembling and testing operations and how these can be overcome?

Wiring operations are very sensitive. Faulty wiring can cause overloads with service failures or even fires as the result. All wiring should be done by licensed professional tradespeople.


What are the four load control functions found on a load lift?

Many lifts have the same functions. Thus, the four major load control functions found on a load lift are lift, lower, forward, and backward. Joystick Control Functions. 3-4. Joystick Control Functions (Button Pushed). 3-5. Service Brakes. 3-6 ... major contribution to safety if you, as the equipment users and operators: 1. ... Know that the machine can safety lift each load before attempting to lift. These are ...... Any problems discovered in the steps.


What are the four major load control functions on a load?

Many lifts have the same functions. Thus, the four major load control functions found on a load lift are lift, lower, forward, and backward. Joystick Control Functions. 3-4. Joystick Control Functions (Button Pushed). 3-5. Service Brakes. 3-6 ... major contribution to safety if you, as the equipment users and operators: 1. ... Know that the machine can safety lift each load before attempting to lift. These are ...... Any problems discovered in the steps.