Skip to content

Commit a2b3cc6

Browse files
Update Session Management
1 parent 06857be commit a2b3cc6

File tree

1 file changed

+34
-28
lines changed

1 file changed

+34
-28
lines changed
Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,46 @@
1-
title layout tags contributors document order permalink
2-
File Management
3-
col-document
4-
OWASP Developer Guide
5-
Shruti Kulkarni
6-
OWASP Developer Guide
7-
747
8-
/draft/appendices/implementation_dos_donts/Session Management/
1+
---
2+
3+
title: Session Management
4+
layout: col-document
5+
tags: OWASP Developer Guide
6+
contributors: Shruti Kulkarni
7+
document: OWASP Developer Guide
8+
order: 743
9+
permalink: /draft/appendices/implementation_dos_donts/cryptographic_practices/
10+
11+
---
12+
913
{% include breadcrumb.html %}
1014

11-
Session Management
12-
Here is a collection of Do's and Don'ts when it comes to session management, gathered from practical experiences.
15+
###Session Management
16+
17+
*Session Management
18+
*Here is a collection of Do's and Don'ts when it comes to session management, gathered from practical experiences.
1319

14-
Creation of session
15-
Session identifier creation must always be done on a trusted system (e.g., The server)
20+
*Creation of session
21+
*Session identifier creation must always be done on a trusted system (e.g., The server)
1622

17-
Creation of session
18-
If a session was established before login, close that session and establish a new session after a successful login
23+
*Creation of session
24+
*If a session was established before login, close that session and establish a new session after a successful login
1925

20-
Creation of session
21-
Generate a new session identifier on any re-authentication
26+
*Creation of session
27+
*Generate a new session identifier on any re-authentication
2228

23-
Random number generation
24-
Session management controls should use well vetted algorithms that ensure sufficiently random session identifiers. Rely on CSPRNG rather than PRNG for random number generation
29+
*Random number generation
30+
*Session management controls should use well vetted algorithms that ensure sufficiently random session identifiers. Rely on CSPRNG rather than PRNG for random number generation
2531

26-
Domain and path
27-
Set the domain and path for cookies containing authenticated session identifiers to an appropriately restricted value for the site
32+
*Domain and path
33+
*Set the domain and path for cookies containing authenticated session identifiers to an appropriately restricted value for the site
2834

29-
Logout
30-
Logout functionality should fully terminate the associated session or connection
35+
*Logout
36+
*Logout functionality should fully terminate the associated session or connection
3137

32-
Session timeout
33-
Establish a session inactivity timeout that is as short as possible, based on balancing risk and business functional requirements. In most cases it should be no more than several hours
38+
*Session timeout
39+
*Establish a session inactivity timeout that is as short as possible, based on balancing risk and business functional requirements. In most cases it should be no more than several hours
3440

35-
Session ID
36-
Do not expose session identifiers in URLs, error messages or logs. Session identifiers should only be located in the HTTP cookie header. For example, do not pass session identifiers as GET parameters
41+
*Session ID
42+
*Do not expose session identifiers in URLs, error messages or logs. Session identifiers should only be located in the HTTP cookie header. For example, do not pass session identifiers as GET parameters
3743

38-
Session ID
39-
Supplement standard session management for sensitive server-side operations, like account management, by utilising per-session strong random tokens or parameters. This method can be used to prevent Cross Site Request Forgery attacks
44+
*Session ID
45+
*Supplement standard session management for sensitive server-side operations, like account management, by utilising per-session strong random tokens or parameters. This method can be used to prevent Cross Site Request Forgery attacks
4046

0 commit comments

Comments
 (0)