468,296 Members | 1,270 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

Security

Hi,
i am new to php.i have two php pages.in the 1st one i have a login
form.the action is handle by the php codes in the same pages(connect
to mysql and verify). i like to keep my other file securitly.if the
user login currectly in the first page i will give a link to 2nd page.
so my problem is if someone manually can enter the url of 2nd page. so
it can view by them.
how to prevent it.
could u help pls
Jul 17 '05 #1
1 1604
sujeevan wrote:
Hi,
i am new to php.i have two php pages.in the 1st one i have a login
form.the action is handle by the php codes in the same pages(connect
to mysql and verify). i like to keep my other file securitly.if the
user login currectly in the first page i will give a link to 2nd page.
so my problem is if someone manually can enter the url of 2nd page. so
it can view by them.
how to prevent it.
could u help pls


Use sessions. Check in the 2nd file for proper start of the session in the
first one, if not, redirect to that.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by robert | last post: by
116 posts views Thread by Mike MacSween | last post: by
4 posts views Thread by Ashish | last post: by
reply views Thread by prithvi g via .NET 247 | last post: by
7 posts views Thread by Magdelin | last post: by
3 posts views Thread by Velvet | last post: by
1 post views Thread by Jeremy S. | last post: by
2 posts views Thread by Budhi Saputra Prasetya | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.