Cute chat user login session maintanance

  •  02-03-2007, 1:44 AM

    Cute chat user login session maintanance

    Hello,
     
    I added cute chat on my site and also open from my site by using mysite login page.
     
    Chat_OpenContact(contactuniquename) -> this function used  for the opening one to one chat window from any link.
     
    I have used it on my site but when I call it at that time I can't found the login user and  so I create another function for the same purpose where two param are passed by me one for login user and another for chat user using following function,
    Chat_OpenContact1(contactuniquename,onlineuser).
     
    Now both function navigate on the Utility_RedirectContact.aspx page where one assign for the user login and onther for the chat. Here you will see the code,
     
     
    1. string uniquename=Request.QueryString["UniqueName"];
     Uniquename used for the chat user name
     
    2. string uid=Request.QueryString["uid"];
     Uid used for the login user
     
    3. FormsAuthentication.RedirectFromLoginPage(uid, false);
    this line used to adding userid in session/cookies
    when I use this function for the maintaining session/cookies it will redirect to default page instead of the actual required page.
    So I have this problem please answer me
     
    4. if( ! ChatWebUtility.CurrentIdentity.IsRegistered )
    5. {
    6.      Response.Redirect(ChatWebUtility.ResolveResource(Context,ChatWebUtility.LoginUrl));
    7.  }
     
    8. CuteChatUser user=ChatApi.GetUser(uniquename);
     
     
     
     
View Complete Thread