I am trying to set a session variable when the user logs into the domain. Is there a way to strip the domain name so that I can pass along only the user to the next related page?
If you are using VBScript for your ASP, you might have good luck with using either the InStr() or InStrRev() function to find the position of the slash character that separates the username from the domain.
Once you know the position, you could use the Mid() function to read everything from the next character on.
Or you could even combine the two on one line. Perhaps with something like this:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.