Page 1 of 1

Admin pages & forcing logon

Posted: Tue Sep 21, 2010 12:49 am
by vfm
Hi,

I have a series of admin pages which enable the end-user to update things in the database. However at the moment, anyone can type in the URL and get to the page.

I've never worked with secure pages before so I wouldnt even know where to start, but how do I make these pages only available to people that have logged in successfully? Is there a generic include I could add to my pages which will do this for me?

Cheers,
Kieran.

Re: Admin pages & forcing logon

Posted: Tue Sep 21, 2010 1:08 am
by amargharat
You have to make login page for admin pages and after login we have to enable and maintain the session.
Now once user is logged in, you have to perform search to check whether session is enabled or not. if logic finds session enables then allow user to access respective page

Re: Admin pages & forcing logon

Posted: Tue Sep 21, 2010 1:25 am
by vfm
Hi,

That logic makes sense. Are there standard snippets of code out there that I could use? As I said, I'm very new to all of this.

Cheers,
Kieran.