Php Code: Working with Sessions
Sessions are an important resource to save data on the server. This script shows their usage by a simple example.
In this example a random number is made and saved to a session; based on its value, a message is shown. If it is bigger than 5000, the 'ID' session is removed and the 'lottery' session is set to 'no'; otherwise it will be kept and 'lottery' session is set to 'yes'. Finally all data is removed.
In this example a random number is made and saved to a session; based on its value, a message is shown. If it is bigger than 5000, the 'ID' session is removed and the 'lottery' session is set to 'no'; otherwise it will be kept and 'lottery' session is set to 'yes'. Finally all data is removed.
If you don't know how to use this code or need more information Click here!