Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/50385-pseudo-code-or-php-concept-help/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.