answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Various functions provided in both php and HTML to overcome the problems presented by HTML being stateless?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 major 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.

Related questions

How are design problems presented?

it presented by a problem design


How you overcome the Indian problems?

There is no problem *****


What are the problems Raven Symone had to overcome?

I've had to overcome problems everyday. Today I spilled milk all in my new purse. haha.


How did Jamaica overcome their problems when switching to the metric system?

Jamaica has not overcome its problems because the metric system is still only partially adopted.


What problems in earlier classification systems have the axes in the DSM-IV overcome?

The axes in the DSM-IV helped to address the limitations of earlier classification systems by incorporating a multidimensional approach to diagnosis. This allowed for a comprehensive understanding of an individual's mental health, taking into account both clinical disorders and psychosocial factors. Additionally, the inclusion of separate axes for different aspects of diagnosis promoted a more systematic and structured approach to assessment and treatment planning.


Why were certain beaches assigned to certain armies on d day?

This was mainly to overcome communications and control problems.This was mainly to overcome communications and control problems.


How do dwarfs overcome their problems?

Dwarf Wars


How could you overcome problems with your Ex?

Talk About It


How did Amelia Earhart overcome her problems when she was famousm?

She overcame her problems with tact and diplomacy.


What major problems do volcanologists face and how do they overcome these problems?

rare skin condition


What problems did Kanye West have to overcome?

He had to overcome almost everyone hating him cause of what he said to Taylor Swift.


How can you overcome the various problems on the Earth?

wait and hope