View Full Version : add in login with pass
Hi
see this link http://www.koddinn.com/csphonebook102/
see on right side New entry how can i add in login code with password to that
syosoft
04-24-2007, 04:01 AM
Normally I wouldnt recommend doing something like this, but if you're really just looking to pass protect that page....
1. Keep the link as is.
2. On the http://www.koddinn.com/csphonebook102/index.php?letter=&action=new&id= page add a check for the logged in session.
3. If login session doesnt exist, push to login page.
4. User submits login creds, set their session, then push back to that page.
Notice how if the user is logged in, they will not be forced to login again if they click that link to add another one in the same session. It's fairly clean, really simple to do.
Enjoy.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.