Session / pass username password

hi all I have a login on my site but it keeps asking for the details per page, I want to allow access to protected pages while logged in, how can I go about it?

I figure I start a session and then on all protected pages start the session and look for the username and password to be set, how does this look in the php code, any ideas? cheers:cool::wink: