Monthly Archives: January 2009

"Remember Me" Doesn’t work in ASP.NET

The "remember me" option in asp.net 2.0 will remember the user for as long as the Timeout period set in the forms authentication in the web.config It’s really weird how it works as it is now. Below is an excerpt from a post found on the DotNukeForum: How forms authentication cookies worked under asp.net 1.1 [...]

Regex Inverse Matching

Came across a situation today were I need to inverse match on a string. In other words I want to match anything that is not xyz. Here is how to do it using negative look-ahead: ^((?!xyz).+)$ Alternatively you can use negative look-behind: ^(.+(?<!xyz))$