Multiple Sessions for a single user using the same data

By Ivan Chavero/Jonathan Hernandez

The idea is to have multiple sessions pointing to the same session/user data

Currently we manage sessions with this table:

sessions
SID
user_id
mtime
hash
md5

We think with this 2 tables we can handle the proposal:

sessions
session_id
user_id
creation_time

user_session_data
user_id
modification_time
hash
md5

With this we can:

  • Have many logins sharing their session data
  • Kill logins that you forgot in the “beach cybercafe”
  • Get a list of users logged
  • Store session data on logout or not
  • Block access for just 1 login:
    • When users login from other location then logout the other user
    • Can’t login because there is another login already

What is needed to implement that:

  • Modify sql/MySQL.sql
  • Modify html/include/JawsSession.php
  • Maybe modify admin.php (maybe)
 
  /var/www/wiki/htdocs/data/jaws/proposals/n_sessions_1_data.txt · Last modified: 2007/11/02 16:27