Difference between revisions for Users / Eo Ny
| Merge of Version1 & Version2 | |
|---|---|
| 1713 | |
| 1714 | === Performance Considerations === |
| 1715 | |
| 1716 | ==== |
| 1717 | 1. **Minimize Session Writes:** |
| 1718 | |
| 1719 | |
| 1720 | 2. **Garbage Collection:** |
| 1721 | |
| 1722 | |
| 1723 | |
| 1724 | 3. **Nonce Cleanup:** |
| 1725 | |
| 1726 | |
| 1727 | |
| 1728 | 4. **Session ID Validation:** |
| 1729 | |
| 1730 | |
| 1731 | 5. **Caching Strategy:** |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | ==== Benchmarks ==== |
| 1736 | |
| … | … |
| 1807 | |
| 1808 | ---- |
| 1809 | |
| 1810 | ===TODO Items (From Code Comments)=== |
| 1811 | The following improvements are planned: |
| 1812 | 1. **Do not store session ID in filename or DB index - store hash instead** |
| 1813 | |
| 1814 | |
| 1815 | 2. **Log of IP changes and other possible security alerts** |
| 1816 | |
| 1817 | |
| 1818 | 3. **Allocate internal unique session which lives through lifetime of uber-session** |
| 1819 | |
| 1820 | |
| 1821 | 4. **Do not delete old sessions, but use them as hijack pointers** |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | 5. **All SIDs used later than ~5secs of regenerations is hijacks** |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | |
| 1830 | ---- |
| 1831 | |
| … | … |
| 1852 | |
| 1853 | ---- |
| 1854 | |
| 1855 | === |
| 1856 | - **Current**: Abstract session class with security features |
| 1857 | - **Planned**: Implementation of TODO items above |
| 1858 | |
| 1859 | ---- |
| 1860 | |
| 1861 | |