Regular Expressions 101

Community Patterns

URL with ASP Cookieless SessionId

1

Regular Expression
PCRE (PHP <7.3)

/
^(\([A-Z]\([0-9]\)[A-Z]\([a-z0-9]{20,28}\)\))\/?(.*)
/

Description

This matches a ASP Cookieless SessionId. Useful if, for example, after deprecating Cookieless sessions you want to redirect any clients with a cached sessionId to the plain url.

Submitted by Zumey - 9 years ago