session script



hai guys could any1 help me wit the session script.any example.plssss

thank u in advance
Which kind of session script you want?

If you want to use session in a page then write session_start() on the top of the page before anything write.

if you want to store something in session then $_SESSION['KEY'] = 'VALUE';
if you want to access value from session then $somevalue = $_SESSION['KEY'];

if you want to check that session exists or not then if(isset($_SESSION['KEY']))
hai.tanks 4 ur guide.the session that i wan is whereby only authorised person can view or access the page. and the page can be viewed by using the link.