developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Changes between Initial Version and Version 1 of Ticket #490


Ignore:
Timestamp:
Mar 7, 2008, 12:03:02 PM (14 years ago)
Author:
laurentj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #490 – Description

    initial v1  
    1 Sometimes, on a web site, sessions are not required, or only when a module would like to store something in it. So, for some visitors, sessions are created even if it is not used. This is a perf issue : it create a file or a record which is not useful.
     1Sometimes, on a web site, sessions are not required, or only when a module would like to store something in it. So, for some visitors, sessions are created even if it is not used. This is a perf issue : it creates a file or a record which is not useful.
    22
    3 We could have jSession::get($varname) and jSession::set($varname, $value) to read or save session variables. So we use them instead of using directly $_SESSION, and there isn't a session_start sytematically.
     3We could have jSession::get($varname) and jSession::set($varname, $value) to read or save session variables. So we use them instead of using directly $_SESSION, and there isn't a session_start systematically.
    44
    5 session_start is called only when calling jSession::set. When we call jSession::get, it should detect if there is a cookie of session. If yes, it execute session_start and return the value from $_SESSION, else it just returns null or "".
     5session_start is called only when calling jSession::set. When we call jSession::get, it should detect if there is a cookie of session. If yes, it execute session_start and return the value from $_SESSION, else it just returns null or "". (of course session_start is called only one time during the execution of an action).
    66