Aleksander Machniak
c442f822fb
Simplify keep-alive action. Now the interval is based on session_lifetime,
...
which means it's executed only if needed for session keeping (reset interval on every action).
Temporarily remove check-recent request, it will be replaced by new global system refresh request in future.
Use keep_alive setting as auto-refresh request interval (allow no-refresh mode)
13 years ago
Aleksander Machniak
413df054ad
CS fixes (mostly tab -> spaces)
14 years ago
Aleksander Machniak
23557f06d1
- Fix (workaround) delete operations with some versions of memcache ( #1488592 )
14 years ago
Aleksander Machniak
ef5f7fb13c
There's a case (reason unknown) when destroy() is called with empty session key.
...
Handle this case properly to prevent from PHP error: Memcache::delete(): Key cannot be empty.
14 years ago
Aleksander Machniak
4d708e6c1d
Remove possible confusion on session reads - PHP expects string result not boolean
14 years ago
Aleksander Machniak
041c93ce0b
Removed $Id$
14 years ago
thomascube
58154f59fc
Accept two past time slots for auth cookie validation; don't encode user-agent into session auth hash ( #1488449 )
14 years ago
alecpl
be98dfc2c0
- Replace some references to rcmail with rcube
14 years ago
alecpl
1aceb9cec8
- Framework refactoring (I hope it's the last one):
...
rcube,rcmail,rcube_ui -> rcube,rcmail,rcube_utils
renamed main.inc into rcube_bc.inc
14 years ago
alecpl
0c259682f6
- Merge devel-framework branch, resolved conflicts
14 years ago
thomascube
c73efcc7bb
Reset IP stored in session when destroying session data ( #1488056 )
14 years ago
thomascube
fec2d8e130
Refactored IMAP cache expunge: delegate to storage object; don't rely on deprecated 'enable_caching' config option
14 years ago
thomascube
7fe3811c65
Changed license to GNU GPLv3+ with exceptions for skins and plugins
14 years ago
alecpl
72ff6ae884
- Simplified compose session data handling, no need for session->cleanup()
14 years ago
thomascube
8c2b883bf0
Fix: decode session data into superglobals after re-reading
14 years ago
thomascube
81f5dd7774
Consider replication delays in session storage
14 years ago
alecpl
d96a15e24f
- Improve performance by skipping redundant SELECT query when writing new session into DB
14 years ago
thomascube
06dc9838e0
Fix session race conditions when composing new messages
14 years ago
alecpl
612eeca739
- Removed leftover code
14 years ago
thomascube
21030324d0
Improved memcache connection procedure from release-0.6; use call_user_func to trigger session gc handlers
15 years ago
thomascube
1a716d2d34
Add copyright line on files with significant changes from Kolab Systems
15 years ago
thomascube
fcc7f861b1
Log session validation errors; keep error message when redirecting to login after session error
15 years ago
thomascube
76d4019a35
Get memcache object from rcmail instance
15 years ago
thomascube
ff4ffc6d54
Revert r4746 due to timestsamp issues with mysql; deprecate rcube_mdb2::unixtimestamp()
15 years ago
thomascube
125894d35d
Fix expression
15 years ago
thomascube
638e3459d6
Don't attempt to read session data again if the initial read didn't return a result
15 years ago
thomascube
60a277f1ce
Fix callback reference after rename
15 years ago
alecpl
68f39efb04
- Fix fatal error from last commit ( #1487884 ), rename rcube_gc() to gc()
15 years ago
thomascube
63e9927d5f
Add support for session storage using memcache
15 years ago
thomascube
4591de7018
Prepare for multiple concurrent compose windows
15 years ago
alecpl
c294eaa3f2
- Performance improvement: Remove redundant DELETE query (for old session deletion) on login
15 years ago
thomascube
fb061aaece
Use PHPs session_regenerte_id() instead of using (unreliable) mt_rand() function ( #1486281 )
15 years ago
thomascube
784a425e07
protect login form submission from CSRF using a request token
15 years ago
thomascube
88ca38a356
Keep rcube_session->lifetime and keep_alive in sync
15 years ago
thomascube
cf2da2f9aa
Improve session validity check with changing auth cookies; reduce writes to DB; better phpdoc
15 years ago
thomascube
f5e7b35307
Bumbed version; Roundcube development is not Switzerland only
15 years ago
thomascube
eee6944b5d
Save session data with bas64 ecoding to make it more robust against garbage data ( #1487136 )
15 years ago
alecpl
ca1f564598
- Performance fix for case when session_lifetime=0, fixed indentation
15 years ago
alecpl
e019f2d0f2
- s/RoundCube/Roundcube/
15 years ago
thomascube
d062dbe18c
Add class docuumentation blocks and make phpdoc work again
16 years ago
alecpl
929a508d80
- Improve performance by avoiding unnecessary updates to the session table ( #1486325 )
16 years ago