Knowledge

Session ID

Source 📝

25: 161:
A session ID is typically granted to a visitor on their first visit to a site. It is different from a user ID in that sessions are typically short-lived (they expire after a preset time of inactivity which may be minutes or hours) and may become invalid after a certain goal has been met (for example,
157:
such as HTTP. For example, a buyer who visits a seller's website wants to collect a number of articles in a virtual shopping cart and then finalize the shopping by going to the site's checkout page. This typically involves an ongoing communication where several webpages are requested by the client
177:
is a simple and effective measure as long as the attacker cannot connect to the server from the same address, but can conversely cause problems for a client if the client has multiple routes to the server (e.g. redundant internet connections) and the client's IP address undergoes
158:
and sent back to them by the server. In such a situation, it is vital to keep track of the current state of the shopper's cart, and a session ID is one way to achieve that goal.
169:
and obtain potential privileges. A session ID is usually a randomly generated string to decrease the probability of obtaining a valid one by means of a
173:. Many servers perform additional verification of the client, in case the attacker has obtained the session ID. Locking a session ID to the client's 153:, a series of related message exchanges. Session identifiers become necessary in cases where the communications infrastructure uses a 186: 116: 50: 97: 69: 179: 46: 165:
As session IDs are often used to identify a user that has logged into a website, they can be used by an attacker to
242: 150: 76: 35: 83: 54: 39: 185:
Examples of the names that some programming languages use when naming their cookie include JSESSIONID (
65: 197: 162:
once the buyer has finalized their order, they cannot use the same session ID to add more items).
209: 170: 154: 166: 130: 90: 236: 226: 24: 174: 221: 194: 145:
is a piece of data that is used in network communications (often over
146: 190: 18: 16:Piece of data that identifies a network session 8: 53:. Unsourced material may be challenged and 117:Learn how and when to remove this message 7: 51:adding citations to reliable sources 14: 23: 1: 180:Network Address Translation 259: 193:), and ASPSESSIONID ( 47:improve this article 210:Session management 171:brute-force search 167:hijack the session 155:stateless protocol 135:session identifier 243:Network protocols 127: 126: 119: 101: 250: 149:) to identify a 131:computer science 122: 115: 111: 108: 102: 100: 59: 27: 19: 258: 257: 253: 252: 251: 249: 248: 247: 233: 232: 218: 206: 123: 112: 106: 103: 60: 58: 44: 28: 17: 12: 11: 5: 256: 254: 246: 245: 235: 234: 231: 230: 224: 217: 216:External links 214: 213: 212: 205: 202: 189:), PHPSESSID ( 125: 124: 31: 29: 22: 15: 13: 10: 9: 6: 4: 3: 2: 255: 244: 241: 240: 238: 228: 225: 223: 220: 219: 215: 211: 208: 207: 203: 201: 199: 196: 192: 188: 183: 181: 176: 172: 168: 163: 159: 156: 152: 148: 144: 143:session token 140: 136: 132: 121: 118: 110: 99: 96: 92: 89: 85: 82: 78: 75: 71: 68: –  67: 63: 62:Find sources: 56: 52: 48: 42: 41: 37: 32:This article 30: 26: 21: 20: 229:at w3schools 227:"ASP manual" 222:"PHP manual" 184: 164: 160: 142: 138: 134: 128: 113: 104: 94: 87: 80: 73: 66:"Session ID" 61: 45:Please help 33: 175:IP address 139:session ID 77:newspapers 195:Microsoft 34:does not 237:Category 204:See also 107:May 2019 187:Java EE 151:session 91:scholar 55:removed 40:sources 93:  86:  79:  72:  64:  147:HTTPS 98:JSTOR 84:books 133:, a 70:news 38:any 36:cite 200:). 198:ASP 191:PHP 141:or 129:In 49:by 239:: 182:. 137:, 120:) 114:( 109:) 105:( 95:· 88:· 81:· 74:· 57:. 43:.

Index


cite
sources
improve this article
adding citations to reliable sources
removed
"Session ID"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
computer science
HTTPS
session
stateless protocol
hijack the session
brute-force search
IP address
Network Address Translation
Java EE
PHP
Microsoft
ASP
Session management
"PHP manual"
"ASP manual"
Category
Network protocols

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.