By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,278 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

Security

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.