web page security and accessing it after logon script through mysql

With all due respect to all experts here !
I would like to resolve this confusion here.
Basically I am working on to put a logon box on web page like user name and password.
I read few free scripts on internet and most of the time ( as I understand ) it looks like after getting authentication from sql or mysql server the user directs to some page, which is either residing on some other location or simply not listed ( as under any link) on main page or deep down.

My confusion is.... lets say after logon ( as valid user ) if I am passing on the link to other people or even if I am bookmark it, then whats the point of logging on ? because after bookmarking it I don't need next time to log on. What I am after is, to provide a page only to those users who are loged in each time (required)  to see that particular page otherwise redirected to bad logon or vice versa.

Please open my mind here with the full concept over controlling the page security in terms of user's authentication with some practical script ( without assumption in scripting) for mysql server.

I will be very greatfull for that and thanks in advance for all those experts who are not laughing at me here.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The pages underneath the login screen need to check that the session is authenticated.
This can be done in different ways, including:

o Using a framework such as Netegrity, WebSphere, BroadVision, etc., etc., that does stuff like this automagically

o Using the access-control mechanisms built into the web server. These are often combined with plugins to let the webserver authenticate against LDAP, mysql, Radius, or some other user-store.

o Using custom JavaScript on each web page that does the check (such as checking for a signed cookie with the user's credentials)
> because after bookmarking it I don't need next time to log on
It's becasue of the cookie stored at your PC.

> loged in each time (required)  to see that particular page otherwise redirected to bad logon or vice versa.
HTTPS will do.

PAQed with no points refunded (of 50)

Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.