sign in

 



Forgot your password?

signup

Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!




You can also sign up by your facebook account!
Feel The Power

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.



If you don't know how to use this code or need more information Click here!





Review

Please Rate this!
VISITORS
Online Users: 4
Total Online Users: 17
Recent Members: Eric Wan, JAYA, derickkk, HEX_Andersson, n_jafari8919
FIND US

LINK US

Link to us:

Please put this code in your page.