Ejemplo n.º 1
0
        protected string GetUserIdFromTicket()
        {
            string userId = string.Empty;

            string ticket = Request.GetCookie("ticket");

            try
            {
                userId = ticketValidator.GetUserIdFromTicket(ticket);
            }
            catch (Exception ex)
            {
                //logger.Info(string.Join(" ", "Error while retrieving userId from ticket", Regex.Replace(ex.Message, "\n|\r\n", " ")));
            }

            return(userId);
        }
Ejemplo n.º 2
0
        public string GetUserIdFromTicket(HttpRequestBase request)
        {
            string ticket = request.GetCookie("ticket");

            return(ticketValidator.GetUserIdFromTicket(ticket));
        }