jdmartin74
Programmer
Hi,
I've done some PHP4 programming, but I am fairly new to classes. I have got something working to handle a session, populating a MySQL database. This all works fine.
My next task is to use this in conjunction with forcing users to log on to an Intranet system. I need to be able to put something at the top of all my pages to determine if they are logged in (hence using the session stuff) and if they are logged in, let them view the page, but if they are not authenticated, then tell it to go to a login page.
I'm a bit lost at where to start. Can anyone help by pointing me in the right direction of some 'simple' examples?
Thanks.
I've done some PHP4 programming, but I am fairly new to classes. I have got something working to handle a session, populating a MySQL database. This all works fine.
My next task is to use this in conjunction with forcing users to log on to an Intranet system. I need to be able to put something at the top of all my pages to determine if they are logged in (hence using the session stuff) and if they are logged in, let them view the page, but if they are not authenticated, then tell it to go to a login page.
I'm a bit lost at where to start. Can anyone help by pointing me in the right direction of some 'simple' examples?
Thanks.