Mysticated Posted May 7, 2007 Share Posted May 7, 2007 I am very familiar with the syntax, but I've been programming local apps for a decade. I'm not used to writing stateless apps, and I'm not sure how to go about doing it. I know about sessions, and this is what I plan to use, but I am looking for concepts/pseudo code/flowcharts on a basic (but fully functional and secure) login script. I can code one now but I am not sure if I am using good PHP practices and technique? How do I differiantiate between different computers on a LAN being logged in at once? A few lines describing the whole process from first visiting a site, to what happens (in the code) when you login, how the "keep me logged in" feature works and logging out would be nice. Quote Link to comment https://forums.phpfreaks.com/topic/50385-pseudo-code-or-php-concept-help/ Share on other sites More sharing options...
igor berger Posted May 7, 2007 Share Posted May 7, 2007 Sessions are browser based not LAN based! Force user to logout close and destroy session. Time the session out if the browser is inective for how many minutes. I hope you are not on a virtual host, if you are sessions are kept in a temp dir that other user can read and write to! In such case zend has a nice session script for storing sessions in MySql. One Rupee Please. Quote Link to comment https://forums.phpfreaks.com/topic/50385-pseudo-code-or-php-concept-help/#findComment-247431 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.