Hi guys!

Problem:

My DB table having column username and password.

------HTML FROM-------

<form id="form1" name="form1" method="post" action="myactionfile.php">

<input name="username" type="text" id="username" />

<input name="password" type="password" id="password" />
</form>


------HTML FROM-------


I want to apply checking on all pages for username and password.

Like:

if you enter correct username and password, you will be able to see entire page otherwise NOT. I want to do it using cookies and sessions.

Any idea?

Thanks in advance