whatsthehampton
Programmer
Hi there,
I'm either going mad or gone mad but if someone else could check this for me please.
A strange thing happened on one of my sites today and when I took a look it seems that when using either the membership logon control or even Membership.ValidateUser in code that; if you type a space before the username, it will log you in.
However, if you have set something like
Session("UserName")= HttpContext.Current.User.Identity.Name
then this session value will hold the space and thus not work?!
.Net 3.5
Am I mad?
Cheers,
Jon
I'm either going mad or gone mad but if someone else could check this for me please.
A strange thing happened on one of my sites today and when I took a look it seems that when using either the membership logon control or even Membership.ValidateUser in code that; if you type a space before the username, it will log you in.
However, if you have set something like
Session("UserName")= HttpContext.Current.User.Identity.Name
then this session value will hold the space and thus not work?!
.Net 3.5
Am I mad?
Cheers,
Jon